Submission #00280
ソースコード
1 2 3 4 5 6 7 | #include<bits/stdc++.h> usihng namespace std; int main(){ double a; cin >> a; cout << a*a*M_PI << endl; } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 円の面積 |
ユーザー名 | ei1612 |
投稿日時 | 2017-11-06 18:29:52 |
言語 | C++ |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 111 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.cpp:2:1: error: ‘usihng’ does not name a type usihng namespace std; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:5:1: error: ‘cin’ was not declared in this scope cin >> a; ^ ./Main.cpp:5:1: 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:6:1: error: ‘cout’ was not declared in this scope cout << a*a*M_PI << endl; ^ ./Main.cpp:6:1: 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:6:21: error: ‘endl’ was not declared in this scope cout << a*a*M_PI << endl; ^ ./Main.cpp:6:21: 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) ^
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|