結果
問題 |
No.338 アンケート機能
|
ユーザー |
👑 ![]() |
提出日時 | 2016-10-20 12:57:27 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 109 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 14:41:47 |
合計ジャッジ時間 | 1,154 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^ main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^~~~ main.c: In function ‘main’: main.c:1:7: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int] main.c:1:19: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););} | ^~~~~ main.c:1:19: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:92: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | j,i,a;main(
ソースコード
j,i,a;main(b){for(scanf("%d%d",&a,&b);!j?j=~++i:a-(~j*100+i/2)/i|b-((i-~j)*100+i/2)/i?j++:!printf("%d",i););}