Submission #00438
ソースコード
ステータス
項目 |
データ |
問題 |
0016 - ログツーの逆襲 |
ユーザー名 |
r2201
|
投稿日時 |
2022-06-05 17:10:42 |
言語 |
C |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
206 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.c: In function ‘main’:
./Main.c:4:1: error: stray ‘\343’ in program
int n;
^
./Main.c:4:2: error: stray ‘\200’ in program
int n;
^
./Main.c:4:3: error: stray ‘\200’ in program
int n;
^
./Main.c:5:1: error: stray ‘\343’ in program
char a[n];
^
./Main.c:5:2: error: stray ‘\200’ in program
char a[n];
^
./Main.c:5:3: error: stray ‘\200’ in program
char a[n];
^
./Main.c:6:1: error: stray ‘\343’ in program
scanf("%d", &n);
^
./Main.c:6:2: error: stray ‘\200’ in program
scanf("%d", &n);
^
./Main.c:6:3: error: stray ‘\200’ in program
scanf("%d", &n);
^
./Main.c:7:1: error: stray ‘\343’ in program
for (int i = 0; i<n; i++) {
^
./Main.c:7:2: error: stray ‘\200’ in program
for (int i = 0; i<n; i++) {
^
./Main.c:7:3: error: stray ‘\200’ in program
for (int i = 0; i<n; i++) {
^
./Main.c:8:1: error: stray ‘\343’ in program
b[i] = n % 2;
^
./Main.c:8:2: error: stray ‘\200’ in program
b[i] = n % 2;
^
./Main.c:8:3: error: stray ‘\200’ in program
b[i] = n % 2;
^
./Main.c:8:4: error: stray ‘\343’ in program
b[i] = n % 2;
^
./Main.c:8:5: error: stray ‘\200’ in program
b[i] = n % 2;
^
./Main.c:8:6: error: stray ‘\200’ in program
b[i] = n % 2;
^
./Main.c:8:7: error: ‘b’ undeclared (first use in this function)
b[i] = n % 2;
^
./Main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:9:1: error: stray ‘\343’ in program
n = n / 2;
^
./Main.c:9:2: error: stray ‘\200’ in program
n = n / 2;
^
./Main.c:9:3: error: stray ‘\200’ in program
n = n / 2;
^
./Main.c:9:4: error: stray ‘\343’ in program
n = n / 2;
^
./Main.c:9:5: error: stray ‘\200’ in program
n = n / 2;
^
./Main.c:9:6: error: stray ‘\200’ in program
n = n / 2;
^
./Main.c:10:1: error: stray ‘\343’ in program
}
^
./Main.c:10:2: error: stray ‘\200’ in program
}
^
./Main.c:10:3: error: stray ‘\200’ in program
}
^
./Main.c:11:1: error: stray ‘\343’ in program
if(n<0){
^
./Main.c:11:2: error: stray ‘\200’ in program
if(n<0){
^
./Main.c:11:3: error: stray ‘\200’ in program
if(n<0){
^
./Main.c:12:29: error: ‘i’ undeclared (first use in this function)
printf("%1d\n", b[--i]);
^
セット
テストケース