結果
問題 | No.1307 Rotate and Accumulate |
ユーザー | 👑 testestest |
提出日時 | 2020-12-04 00:56:09 |
言語 | C (gcc 12.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 32,768 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 10:47:36 |
合計ジャッジ時間 | 4,554 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
コンパイルメッセージ
main.c:3:1: warning: data definition has no type or storage class 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^ main.c:3:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:3:10: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^ main.c:3:19: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^ main.c:3:21: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int] 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^ main.c:3:23: warning: type defaults to 'int' in declaration of 'r' [-Wimplicit-int] 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^ main.c:3:25: warning: return type defaults to 'int' [-Wimplicit-int] 3 | a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));} | ^~~~ main.c: In function 'main': main.c:3:25: warning: type of 'n' defaults to 'int' [-Wimplicit-int] main.c:3:25: warning: type of 's' defaults to 'int' [-Wimplicit-int] main.c:3:39: warning: implicit declara
ソースコード
#pragma GCC target("avx2") #pragma GCC optimize("O3") a[1<<17],b[1<<17],i,j,r;main(n,s){for(scanf("%d%*d",&n);i++<n;scanf(s="%d ",a+i));for(;~scanf(s,&r);)for(i=0;i++<n;b[i]+=i>n-r?a[r+i-n]:a[r+i]);for(;j++<n;printf(s,b[j]));}