Submission #00196


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
signed main(){
double i;
scanf("%lf",&i);
if(i < 0){
printf(REIWA\n);
}
if(i = 0){
printf(RE_WA\n);
}
if(i > 0){
printf(0WA\n);
}
return(0);
}

ステータス

項目 データ
問題 0014 - 令和
ユーザー名 ei1929
投稿日時 2019-05-27 18:20:30
言語 C
状態 Compile Error
得点 0
ソースコード長 211 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.c: In function ‘main’:
./Main.c:6:17: error: stray ‘\’ in program
     printf(REIWA\n);
                 ^
./Main.c:6:12: error: ‘REIWA’ undeclared (first use in this function)
     printf(REIWA\n);
            ^~~~~
./Main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:6:17: error: expected ‘)’ before ‘n’
     printf(REIWA\n);
                 ^~
                 )
./Main.c:10:17: error: stray ‘\’ in program
     printf(RE_WA\n);
                 ^
./Main.c:10:12: error: ‘RE_WA’ undeclared (first use in this function)
     printf(RE_WA\n);
            ^~~~~
./Main.c:10:17: error: expected ‘)’ before ‘n’
     printf(RE_WA\n);
                 ^~
                 )
./Main.c:14:12: error: invalid suffix "WA" on integer constant
     printf(0WA\n);
            ^~~
./Main.c:14:15: error: stray ‘\’ in program
     printf(0WA\n);
               ^
./Main.c:14:15: error: expected ‘)’ before ‘n’
     printf(0WA\n);
               ^~
               )

セット

セット 得点 Cases

テストケース

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