結果
問題 | No.383 レーティング |
ユーザー | testestest |
提出日時 | 2016-07-01 22:20:37 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 86 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 18,688 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 00:06:43 |
合計ジャッジ時間 | 734 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 1 ms
6,820 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
6,820 KB |
testcase_04 | AC | 1 ms
6,816 KB |
testcase_05 | AC | 1 ms
6,820 KB |
testcase_06 | AC | 1 ms
6,816 KB |
testcase_07 | AC | 1 ms
6,816 KB |
testcase_08 | AC | 1 ms
6,816 KB |
testcase_09 | AC | 1 ms
6,816 KB |
testcase_10 | AC | 0 ms
6,816 KB |
testcase_11 | AC | 1 ms
6,820 KB |
testcase_12 | AC | 1 ms
6,816 KB |
testcase_13 | AC | 1 ms
6,816 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[1000]; | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:2:1: warning: data definition has no type or storage class 2 | n,k,m,i,j,x,y; | ^ main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:5: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:7: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:9: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:11: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:2:13: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int] 2 | n,k,m,i,j,x,y; | ^ main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:9: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 4 | scanf("%d%d",&n,&k); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a[1000]; main.c:4:9: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 4 | scanf("%d%d",&n,&k); | ^~~~~ main.c:4:9: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:5:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 5 | printf("%+d",k-n); | ^~~~~~
ソースコード
a[1000]; n,k,m,i,j,x,y; main(){ scanf("%d%d",&n,&k); printf("%+d",k-n); return 0; }