Submission #57555


ソースコード

ステータス

項目 データ
問題 1225 - std::sort
ユーザー名 r1825
投稿日時 2019-12-19 13:08:57
言語 C++14
状態 Compile Error
得点 0
ソースコード長 392 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

In file included from ./Main.cpp:1:
./57554.cpp:3:18: error: ‘cin’ in namespace ‘std’ does not name a type
 using cin = std::cin;
                  ^~~
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 ./57554.cpp:1,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:60:18: note: ‘std::cin’ declared here
   extern istream cin;  /// Linked to standard input
                  ^~~
In file included from ./Main.cpp:1:
./57554.cpp:4:19: error: ‘cout’ in namespace ‘std’ does not name a type
 using cout = std::cout;
                   ^~~~
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 ./57554.cpp:1,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:61:18: note: ‘std::cout’ declared here
   extern ostream cout;  /// Linked to standard output
                  ^~~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:7:5: error: ‘cin’ was not declared in this scope
     cin >> n;
     ^~~
./Main.cpp:7:5: 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 ./57554.cpp:1,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^~~
./Main.cpp: In lambda function:
./Main.cpp:11:16: error: ‘A’ was not declared in this scope
         return A < B;
                ^
./Main.cpp:11:20: error: ‘B’ was not declared in this scope
         return A < B;
                    ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:13:35: error: ‘cout’ was not declared in this scope
     for ( int i = 0; i < n; i++ ) cout << s[i] << '\n';
                                   ^~~~
./Main.cpp:13:35: 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 ./57554.cpp:1,
                 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
                  ^~~~

セット

セット 得点 Cases

テストケース

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