Submission #00014
ソースコード
ステータス
項目 |
データ |
問題 |
0001 - fal_add |
ユーザー名 |
crom
|
投稿日時 |
2017-12-22 13:02:09 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
108 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:4:3: error: ‘cin’ was not declared in this scope
cin>>a>>b;
^
./Main.cpp:4:3: note: suggested alternative:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:74:0,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^
./Main.cpp:5:3: error: ‘cout’ was not declared in this scope
cout<<a+b<<endl;
^
./Main.cpp:5:3: note: suggested alternative:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:74:0,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^
./Main.cpp:5:14: error: ‘endl’ was not declared in this scope
cout<<a+b<<endl;
^
./Main.cpp:5:14: note: suggested alternative:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:39:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:66,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
セット
テストケース