Submission #00120


ソースコード

ステータス

項目 データ
問題 0006 - フロッピーキューブ
ユーザー名 crom
投稿日時 2019-07-26 10:31:44
言語 C++11
状態 Compile Error
得点 0
ソースコード長 2840 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp:1:1: error: ‘include’ does not name a type
 include<bits/stdc++.h>
 ^~~~~~~
./Main.cpp:13:9: error: ‘pair’ does not name a type
 typedef pair<int, int> P;
         ^~~~
./Main.cpp:14:9: error: ‘pair’ does not name a type
 typedef pair<int, P> i_P;
         ^~~~
./Main.cpp:15:9: error: ‘pair’ does not name a type
 typedef pair< LL, LL > L_P;
         ^~~~
./Main.cpp:17:17: error: ‘INT_MAX’ was not declared in this scope
 const int INF = INT_MAX;
                 ^~~~~~~
./Main.cpp:17:17: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
./Main.cpp:1:1:
+#include <climits>
 include<bits/stdc++.h>
./Main.cpp:17:17:
 const int INF = INT_MAX;
                 ^~~~~~~
./Main.cpp:18:17: error: ‘INT_MIN’ was not declared in this scope
 const int MIN = INT_MIN;
                 ^~~~~~~
./Main.cpp:18:17: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
./Main.cpp:19:17: error: ‘LLONG_MAX’ was not declared in this scope
 const LL LINF = LLONG_MAX;
                 ^~~~~~~~~
./Main.cpp:19:17: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
./Main.cpp: In function ‘int main()’:
./Main.cpp:28:5: error: ‘cin’ was not declared in this scope
     cin.tie(0);
     ^~~
./Main.cpp:28:5: note: suggested alternative: ‘main’
     cin.tie(0);
     ^~~
     main
./Main.cpp:29:5: error: ‘ios’ has not been declared
     ios::sync_with_stdio(false);
     ^~~
./Main.cpp:39:9: error: ‘cout’ was not declared in this scope
         cout << res << endl;
         ^~~~
./Main.cpp: In function ‘void rec(int*, int)’:
./Main.cpp:80:15: error: ‘min’ was not declared in this scope
         res = min( cnt, res );
               ^~~
./Main.cpp:80:15: note: suggested alternative: ‘main’
         res = min( cnt, res );
               ^~~
               main
./Main.cpp:86:5: error: ‘swap’ was not declared in this scope
     swap( cube[0], cube[27] ); swap( cube[1], cube[28] ); swap( cube[2], cube[29] ); swap( cube[14], cube[15] ); swap( cube[20], cube[18] ); rec( cube, cnt + 1 );
     ^~~~

セット

セット 得点 Cases

テストケース

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