Submission #00287
ソースコード
ステータス
項目 |
データ |
問題 |
0009 - この川 |
ユーザー名 |
yuu
|
投稿日時 |
2017-07-30 21:39:12 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
216 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:2:7: エラー: expected nested-name-specifier before ‘namesace’
using namesace std;
^~~~~~~~
./Main.cpp: 関数 ‘int main()’ 内:
./Main.cpp:5:1: エラー: ‘cin’ was not declared in this scope
cin h >> y >> n;
^~~
./Main.cpp:5:1: 備考: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:75:0,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:60:18: 備考: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
./Main.cpp:11:1: エラー: ‘cout’ was not declared in this scope
cout << "deep" << endl;
^~~~
./Main.cpp:11:1: 備考: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:75:0,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:61:18: 備考: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
./Main.cpp:11:19: エラー: ‘endl’ was not declared in this scope
cout << "deep" << endl;
^~~~
./Main.cpp:11:19: 備考: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:39:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:590:5: 備考: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
./Main.cpp:13:1: エラー: ‘cout’ was not declared in this scope
cout << "shallow" << endl;
^~~~
./Main.cpp:13:1: 備考: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:75:0,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:61:18: 備考: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
./Main.cpp:13:22: エラー: ‘endl’ was not declared in this scope
cout << "shallow" << endl;
^~~~
./Main.cpp:13:22: 備考: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:39:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:590:5: 備考: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
セット
テストケース