Submission #00273


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include
int main(){
int n = 10;
int m = 20;
if(n > m){
printf("N is bigger\n");
}
if(n < m)
printf("M is bigger\n");
}
if(n == m){
printf("N equal M\n");
}
return(0);
}

ステータス

項目 データ
問題 0004 - Dokaben
ユーザー名 ei1733
投稿日時 2017-11-06 18:29:10
言語 C
状態 Compile Error
得点 0
ソースコード長 251 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
./Main.c: In function ‘main’:
./Main.c:8:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
         printf("N is bigger\n");
         ^~~~~~
./Main.c:8:9: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:8:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
./Main.c:11:9: warning: incompatible implicit declaration of built-in function ‘printf’
         printf("M is bigger\n");
         ^~~~~~
./Main.c:11:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
./Main.c: At top level:
./Main.c:13:5: error: expected identifier or ‘(’ before ‘if’
     if(n == m){
     ^~
./Main.c:17:5: error: expected identifier or ‘(’ before ‘return’
     return(0);
     ^~~~~~
./Main.c:18:1: error: expected identifier or ‘(’ before ‘}’ token
 }
 ^

セット

セット 得点 Cases

テストケース

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