Submission #00030
ソースコード
ステータス
項目 |
データ |
問題 |
0001 - もらったキャンディ |
ユーザー名 |
ei2326
|
投稿日時 |
2025-09-12 16:05:17 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
62 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:2:18: error: ‘cin’ was not declared in this scope
int main(){int n;cin>>n;cout<<n-10<<endl;}
^~~
./Main.cpp:2:18: 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:2:25: error: ‘cout’ was not declared in this scope
int main(){int n;cin>>n;cout<<n-10<<endl;}
^~~~
./Main.cpp:2:25: 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:2:37: error: ‘endl’ was not declared in this scope
int main(){int n;cin>>n;cout<<n-10<<endl;}
^~~~
./Main.cpp:2:37: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
セット
テストケース