結果
問題 |
No.477 MVP
|
ユーザー |
|
提出日時 | 2017-01-28 17:28:48 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 66 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 19,584 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 21:08:03 |
合計ジャッジ時間 | 817 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 6 |
コンパイルメッセージ
main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ^~~~ main.c: In function ‘main’: main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ^~~~~ main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:25: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ~^ ~~ | | | | | long int * | int * | %ld main.c:1:27: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ~^ ~~ | | | | int * long int * | %ld main.c:1:40: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);} | ^~~~~~ main.c:1:40: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ ma
ソースコード
long a,b;main(){scanf("%d%d",&a,&b);a=!printf("%ld",~-a/(b+1)+1);}