Submission #00032


ソースコード

ステータス

項目 データ
問題 0001 - HTPC
ユーザー名 YUSAKU(ei1718)
投稿日時 2018-03-30 13:12:50
言語 C++11
状態 Compile Error
得点 0
ソースコード長 504 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:3: error: ‘string’ was not declared in this scope
   string str;
   ^~~~~~
./Main.cpp:9:3: note: suggested alternatives:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iosfwd:39:0,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:38,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:38,
                 from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/stringfwd.h:74:33: note:   ‘std::__cxx11::string’
   typedef basic_string<char>    string;
                                 ^~~~~~
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/stringfwd.h:74:33: note:   ‘std::__cxx11::string’
./Main.cpp:11:3: error: ‘cin’ was not declared in this scope
   cin >> str;
   ^~~
./Main.cpp:11:3: note: suggested alternative:
In file included from ./Main.cpp:1:0:
/usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^~~
./Main.cpp:11:10: error: ‘str’ was not declared in this scope
   cin >> str;
          ^~~
./Main.cpp:38:3: error: ‘cout’ was not declared in this scope
   cout << ans << endl;
   ^~~~
./Main.cpp:38:3: note: suggested alternative:
In file included from ./Main.cpp:1:0:
/usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^~~~
./Main.cpp:38:18: error: ‘endl’ was not declared in this scope
   cout << ans << endl;
                  ^~~~
./Main.cpp:38:18: note: suggested alternative:
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/iostream:39:0,
                 from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/ostream:590:5: note:   ‘std::endl’
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^~~~

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #