Submission #00083
ソースコード
ステータス
コンパイルメッセージ
./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]){
^
セット
テストケース