結果
問題 | No.73 helloworld |
ユーザー | 👑 testestest |
提出日時 | 2015-08-12 23:00:10 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-29 02:36:18 |
合計ジャッジ時間 | 1,025 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[26],p,t;main(q){ | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | a[26],p,t;main(q){ | ^ main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int] 1 | a[26],p,t;main(q){ | ^ main.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a[26],p,t;main(q){ | ^~~~ main.c: In function ‘main’: main.c:1:11: warning: type of ‘q’ defaults to ‘int’ [-Wimplicit-int] main.c:2:7: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 2 | for(;~scanf("%d",a+t++);); | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | a[26],p,t;main(q){ main.c:2:7: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 2 | for(;~scanf("%d",a+t++);); | ^~~~~ main.c:2:7: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:4:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 4 | p=!printf("%ld",1L*a[14]*a[14]/4*a[7]*a[4]*a[22]*a[17]*a[3]*p); | ^~~~~~ main.c:4:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:4:4: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:4:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
a[26],p,t;main(q){ for(;~scanf("%d",a+t++);); for(q=a[11];q--;)p=p<(t=q*(q-1)/2*(a[11]-q))?t:p; p=!printf("%ld",1L*a[14]*a[14]/4*a[7]*a[4]*a[22]*a[17]*a[3]*p); }