Submission #00045
ソースコード
1 2 3 4 5 6 7 8 9 10 | #include <bits/stdc++.h> int main(){ int n,a; cin >> n; for ( int i=0;i<n;i++){ cin >> a; cout << bitset<8>(a) << endl; } } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - プロ技 |
ユーザー名 | ei1439 |
投稿日時 | 2015-10-28 17:54:59 |
言語 | C++11 |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 149 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.cpp: In function ‘int main()’: ./Main.cpp:5:3: error: ‘cin’ was not declared in this scope cin >> n; ^ ./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:60:18: note: ‘std::cin’ extern istream cin; /// Linked to standard input ^ ./Main.cpp:8:5: error: ‘cout’ was not declared in this scope cout << bitset<8>(a) << endl; ^ ./Main.cpp:8:5: 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:8:13: error: ‘bitset’ was not declared in this scope cout << bitset<8>(a) << endl; ^ ./Main.cpp:8:13: 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:65:0, from ./Main.cpp:1: /usr/local/gcc-5.1.0/include/c++/5.1.0/bitset:749:11: note: ‘std::bitset’ class bitset ^ ./Main.cpp:8:29: error: ‘endl’ was not declared in this scope cout << bitset<8>(a) << endl; ^ ./Main.cpp:8:29: 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/ccomplex:38, from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52, 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 |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|