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