Submission #00006
ソースコード
ステータス
項目 |
データ |
問題 |
0002 - ビ太郎と IOI |
ユーザー名 |
ebitomato
|
投稿日時 |
2020-11-06 16:20:48 |
言語 |
C |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
361 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.c: In function ‘main’:
./Main.c:5:13: error: ‘B’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:5:15: error: ‘I’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:15: warning: excess elements in scalar initializer
./Main.c:5:15: note: (near initialization for ‘s’)
./Main.c:5:17: error: ‘T’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:17: warning: excess elements in scalar initializer
./Main.c:5:17: note: (near initialization for ‘s’)
./Main.c:5:19: error: ‘A’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:19: warning: excess elements in scalar initializer
./Main.c:5:19: note: (near initialization for ‘s’)
./Main.c:5:21: error: ‘R’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:21: warning: excess elements in scalar initializer
./Main.c:5:21: note: (near initialization for ‘s’)
./Main.c:5:23: error: ‘O’ undeclared (first use in this function)
char s={B,I,T,A,R,O};
^
./Main.c:5:23: warning: excess elements in scalar initializer
./Main.c:5:23: note: (near initialization for ‘s’)
./Main.c:6:18: error: subscripted value is neither array nor pointer nor vector
scanf("%s",&s[n]);
^
./Main.c:8:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>’ token
for(int j>i;j<=n;j++){
^
./Main.c:8:21: error: ‘j’ undeclared (first use in this function)
for(int j>i;j<=n;j++){
^
./Main.c:8:25: error: expected ‘)’ before ‘;’ token
for(int j>i;j<=n;j++){
~ ^
)
./Main.c:9:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>’ token
for(int k>j;k<=n;k++){
^
./Main.c:9:25: error: ‘k’ undeclared (first use in this function)
for(int k>j;k<=n;k++){
^
./Main.c:9:29: error: expected ‘)’ before ‘;’ token
for(int k>j;k<=n;k++){
~ ^
)
./Main.c:13:12: error: ‘i’ undeclared (first use in this function)
if(i='I' && j='O' && k='I'){
^
セット
テストケース