Submission #00083


ソースコード

ステータス

項目 データ
問題 0003 - Same Sequence
ユーザー名 ebitomato
投稿日時 2020-11-09 18:22:10
言語 C
状態 Compile Error
得点 0
ソースコード長 945 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.c: In function ‘main’:
./Main.c:13:26: error: subscripted value is neither array nor pointer nor vector
             scanf("%d",&a[n]);
                          ^
./Main.c:14:14: error: subscripted value is neither array nor pointer nor vector
             a[0]=moon;
              ^
./Main.c:16:30: error: subscripted value is neither array nor pointer nor vector
                 scanf("%d",&b[n]);
                              ^
./Main.c:17:18: error: subscripted value is neither array nor pointer nor vector
                 a[n]=a[0];
                  ^
./Main.c:17:23: error: subscripted value is neither array nor pointer nor vector
                 a[n]=a[0];
                       ^
./Main.c:18:23: error: subscripted value is neither array nor pointer nor vector
                 moon=a[n];
                       ^
./Main.c:20:18: error: subscripted value is neither array nor pointer nor vector
                 a[i]=moon;
                  ^
./Main.c:21:18: error: subscripted value is neither array nor pointer nor vector
                 a[j]=a[i];
                  ^
./Main.c:21:23: error: subscripted value is neither array nor pointer nor vector
                 a[j]=a[i];
                       ^
./Main.c:22:23: error: subscripted value is neither array nor pointer nor vector
                 moon=a[j];
                       ^
./Main.c:29:14: error: subscripted value is neither array nor pointer nor vector
             b[0]=moon;
              ^
./Main.c:31:18: error: subscripted value is neither array nor pointer nor vector
                 b[n]=b[0];
                  ^
./Main.c:31:23: error: subscripted value is neither array nor pointer nor vector
                 b[n]=b[0];
                       ^
./Main.c:32:23: error: subscripted value is neither array nor pointer nor vector
                 moon=b[n];
                       ^
./Main.c:34:18: error: subscripted value is neither array nor pointer nor vector
                 b[i]=moon;
                  ^
./Main.c:35:18: error: subscripted value is neither array nor pointer nor vector
                 b[j]=b[i];
                  ^
./Main.c:35:23: error: subscripted value is neither array nor pointer nor vector
                 b[j]=b[i];
                       ^
./Main.c:36:23: error: subscripted value is neither array nor pointer nor vector
                 moon=b[j];
                       ^
./Main.c:42:9: error: subscripted value is neither array nor pointer nor vector
     if(a[i]==b[i]){
         ^
./Main.c:42:15: error: subscripted value is neither array nor pointer nor vector
     if(a[i]==b[i]){
               ^

セット

セット 得点 Cases

テストケース

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