Submission #00100
ソースコード
ステータス
項目 |
データ |
問題 |
0002 - アスキー文字 |
ユーザー名 |
ei2319-Mk.2
|
投稿日時 |
2023-08-07 22:25:47 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
303 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:3:1: error: expected identifier before ‘int’
int main() {
^~~
./Main.cpp:2:16: error: expected ‘;’ before ‘int’
using namespace
^
;
int main() {
~~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:5: error: ‘cin’ was not declared in this scope
cin >> N;
^~~
./Main.cpp:5:5: note: suggested alternative:
In file included from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
./Main.cpp:8:9: error: ‘cout’ was not declared in this scope
cout << "1" << std::endl;
^~~~
./Main.cpp:8:9: note: suggested alternative:
In file included from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
./Main.cpp:9:7: error: ‘elsse’ was not declared in this scope
} elsse if (N >= 97 && N <= 122) {
^~~~~
./Main.cpp:9:7: note: suggested alternative: ‘pclose’
} elsse if (N >= 97 && N <= 122) {
^~~~~
pclose
./Main.cpp:11:7: error: ‘else’ without a previous ‘if’
} else {
^~~~
./Main.cpp:12:9: error: ‘cout’ was not declared in this scope
cout << "0" << std::endl;
^~~~
./Main.cpp:12:9: note: suggested alternative:
In file included from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
セット
テストケース