Submission #00111
ソースコード
ステータス
項目 |
データ |
問題 |
0001 - int? |
ユーザー名 |
ei2331
|
投稿日時 |
2024-11-18 16:28:17 |
言語 |
C |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
162 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.c:1:1: warning: data definition has no type or storage class
c;main(){
^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
./Main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
c;main(){
^~~~
./Main.c: In function ‘main’:
./Main.c:2:11: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
while(scanf("%d",&c)!=EOF){
^~~~~
./Main.c:2:11: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:2:11: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
c;main(){
while(scanf("%d",&c)!=EOF){
^~~~~
./Main.c:2:27: error: ‘EOF’ undeclared (first use in this function)
while(scanf("%d",&c)!=EOF){
^~~
./Main.c:2:27: note: ‘EOF’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
./Main.c:2:27: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:4:13: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("float\n");
^~~~~~
./Main.c:4:13: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:4:13: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
./Main.c:8:5: warning: incompatible implicit declaration of built-in function ‘printf’
printf("int\n");
^~~~~~
./Main.c:8:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
セット
テストケース