結果
問題 | No.339 何人が回答したのか |
ユーザー | 👑 testestest |
提出日時 | 2016-01-31 20:58:43 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 88 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 19,584 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 19:44:31 |
合計ジャッジ時間 | 1,635 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^~~~ main.c: In function ‘main’: main.c:1:9: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:21: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^~~~ main.c:1:31: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} main.c:1:31: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} | ^~~~~ main.c:1:31: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:69: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);} |
ソースコード
s=100,t;main(i){for(gets(&i);~scanf("%d",&i);)for(;t=i;s=t)i=s%i;t=!printf("%d",100/s);}