結果
問題 |
No.204 ゴールデン・ウィーク(2)
|
ユーザー |
👑 ![]() |
提出日時 | 2016-07-16 15:45:17 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 13:46:59 |
合計ジャッジ時間 | 1,514 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 42 WA * 4 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^ main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);} | ^~~~ main.c: In function ‘main’: main.c:1:14: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:14: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:28: warning: implicit declaration of function
ソースコード
p,q,r=14,d,m;main(n,t){for(scanf("%d",&d);t;n+11?n+112?t%11?m=r>d?fmax(d+fmax(p,q),m):fmax(m,p+q+r),p=q,q=0,r=1:r++:q++,t=n:0)n=~getchar();m=!printf("%d",p+d>m?p+d:m);}