Submission #53515
ソースコード
ステータス
項目 |
データ |
問題 |
0001 - Hello World! |
ユーザー名 |
ei1913
|
投稿日時 |
2019-08-23 16:14:33 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
101 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:2:1: error: ‘usingnamespace’ does not name a type; did you mean ‘sigaltstack’?
usingnamespace std;
^~~~~~~~~~~~~~
sigaltstack
./Main.cpp: In function ‘int main()’:
./Main.cpp:4:1: error: ‘cout’ was not declared in this scope
cout <<"Hello World!"<<endl;
^~~~
./Main.cpp:4:1: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:75,
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:4:24: error: ‘endl’ was not declared in this scope
cout <<"Hello World!"<<endl;
^~~~
./Main.cpp:4:24: note: suggested alternative:
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:39,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:67,
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)
^~~~
セット
テストケース