Submission #00003


ソースコード

ステータス

項目 データ
問題 0003 - 如何に汝を満足せしめむ? いざ数え上げむ…
ユーザー名 I dont any
投稿日時 2015-10-21 16:58:13
言語 C++11
状態 Compile Error
得点 0
ソースコード長 938 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int Check(int&)’:
./Main.cpp:31:10: error: reference to ‘array’ is ambiguous
   return(array[S[idx++] - 'P']);
          ^
./Main.cpp:5:5: note: candidates are: int array [3]
 int array[3];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/tuple:39:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/functional:55,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:70,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/array:81:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:44:6: error: reference to ‘array’ is ambiguous
      array[0] = i;
      ^
./Main.cpp:5:5: note: candidates are: int array [3]
 int array[3];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/tuple:39:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/functional:55,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:70,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/array:81:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^
./Main.cpp:45:6: error: reference to ‘array’ is ambiguous
      array[1] = j;
      ^
./Main.cpp:5:5: note: candidates are: int array [3]
 int array[3];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/tuple:39:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/functional:55,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:70,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/array:81:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^
./Main.cpp:46:6: error: reference to ‘array’ is ambiguous
      array[2] = k;
      ^
./Main.cpp:5:5: note: candidates are: int array [3]
 int array[3];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/tuple:39:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/functional:55,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:70,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/array:81:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^

セット

セット 得点 Cases

テストケース

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