Submission #81692
ソースコード
ステータス
項目 |
データ |
問題 |
1901 - int? |
ユーザー名 |
ei2331
|
投稿日時 |
2024-11-18 16:35:45 |
言語 |
C |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
56 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.c:1:1: warning: data definition has no type or storage class
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^
./Main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
./Main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^
./Main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^~~~
./Main.c: In function ‘main’:
./Main.c:1:12: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^~~~~
./Main.c:1:12: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:12: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^~~~~
./Main.c:1:33: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^~~~~~
./Main.c:1:33: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:1:33: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
./Main.c:1:50: warning: missing terminating " character
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^
./Main.c:1:50: error: missing terminating " character
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^~~~~~~
./Main.c:1:1: error: expected expression at end of input
a,b;main(){scanf("%d.%d",&a,&b);printf(b?"float":"int);}
^
./Main.c:1:1: error: expected declaration or statement at end of input
セット
テストケース