結果
| 問題 | No.339 何人が回答したのか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-15 22:31:15 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 107 bytes |
| 記録 | |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 28,744 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:13:45 |
| 合計ジャッジ時間 | 1,337 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 61 |
コンパイルメッセージ
main.c:1:29: warning: data definition has no type or storage class
1 | g(a,b){return b?g(b,a%b):a;}a,s,t=100;main(i){for(;~scanf("%d",&a);)--i&&(s+=a,t=g(t,a));printf("%d",s/t);}
| ^
main.c: In function ‘main’:
main.c:1:53: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | g(a,b){return b?g(b,a%b):a;}a,s,t=100;main(i){for(;~scanf("%d",&a);)--i&&(s+=a,t=g(t,a));printf("%d",s/t);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | g(a,b){return b?g(b,a%b):a;}a,s,t=100;main(i){for(;~scanf("%d",&a);)--i&&(s+=a,t=g(t,a));printf("%d",s/t);}
main.c:1:90: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | g(a,b){return b?g(b,a%b):a;}a,s,t=100;main(i){for(;~scanf("%d",&a);)--i&&(s+=a,t=g(t,a));printf("%d",s/t);}
| ^~~~~~
main.c:1:90: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
g(a,b){return b?g(b,a%b):a;}a,s,t=100;main(i){for(;~scanf("%d",&a);)--i&&(s+=a,t=g(t,a));printf("%d",s/t);}