Submission #00093


ソースコード

ステータス

項目 データ
問題 0004 - 残像に口紅を
ユーザー名 ei1333
投稿日時 2015-12-02 17:02:22
言語 C++11
状態 Compile Error
得点 0
ソースコード長 578 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp:1:1: error: expected unqualified-id before ‘/’ token
 /stdc++.h>
 ^
./Main.cpp:3:9: error: ‘pair’ does not name a type
 typedef pair< int, int > Pi;
         ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:3: error: ‘string’ was not declared in this scope
   string S;
   ^
./Main.cpp:10:21: error: ‘fill_n’ was not declared in this scope
   fill_n(last, 8, -1);
                     ^
./Main.cpp:11:3: error: ‘cin’ was not declared in this scope
   cin >> S;
   ^
./Main.cpp:11:10: error: ‘S’ was not declared in this scope
   cin >> S;
          ^
./Main.cpp:12:10: error: expected ‘;’ before ‘ret’
   string ret = "ABCDEFGH";
          ^
./Main.cpp:17:5: error: ‘vector’ was not declared in this scope
     vector< bool > used(8, false);
     ^
./Main.cpp:17:13: error: expected primary-expression before ‘bool’
     vector< bool > used(8, false);
             ^
./Main.cpp:19:11: error: ‘used’ was not declared in this scope
       if(!used[S[i] - 'A']) {
           ^
./Main.cpp:20:24: error: ‘ret’ was not declared in this scope
         if(now >= 0 && ret[now--] != S[i]) flag = true;
                        ^
./Main.cpp:24:36: error: ‘ret’ was not declared in this scope
   } while(flag && next_permutation(ret.begin(), ret.end()));
                                    ^
./Main.cpp:24:58: error: ‘next_permutation’ was not declared in this scope
   } while(flag && next_permutation(ret.begin(), ret.end()));
                                                          ^
./Main.cpp:25:3: error: ‘cout’ was not declared in this scope
   cout << ret << endl;
   ^
./Main.cpp:25:18: error: ‘endl’ was not declared in this scope
   cout << ret << endl;
                  ^

セット

セット 得点 Cases

テストケース

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