結果
| 問題 |
No.424 立体迷路
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-08 10:03:48 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 29,824 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 10:37:52 |
| 合計ジャッジ時間 | 1,063 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 3 |
| other | AC * 11 WA * 10 |
コンパイルメッセージ
main.c:1:17: warning: data definition has no type or storage class
1 | char s[199][99];n=1,m;f(p,q,t,T){for(T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],t=t-s[p+n+n][q+m+m]|(t-=s[p+n][q+m])<2?abs(t)<2:2,f(p+n*t,q+m*t);}main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););puts(s[x+99][y]?"YES":"NO");}
| ^
main.c:1:17: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:21: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
1 | char s[199][99];n=1,m;f(p,q,t,T){for(T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],t=t-s[p+n+n][q+m+m]|(t-=s[p+n][q+m])<2?abs(t)<2:2,f(p+n*t,q+m*t);}main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););puts(s[x+99][y]?"YES":"NO");}
| ^
main.c:1:23: warning: return type defaults to 'int' [-Wimplicit-int]
1 | char s[199][99];n=1,m;f(p,q,t,T){for(T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],t=t-s[p+n+n][q+m+m]|(t-=s[p+n][q+m])<2?abs(t)<2:2,f(p+n*t,q+m*t);}main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););puts(s[x+99][y]?"YES":"NO");}
| ^
main.c: In function 'f':
main.c:1:23: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'q' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:1:23: warning: type of 'T' defaults to 'int' [-Wimplicit-int]
main.c:1:122: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
1 | char s[199][99];n=1,m;f(p,q,t,T){for(T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],t=t-s[p+n+n][q+m+m]|(t-=s[p+n][q+m])<2?abs(t)<2:2,f(p+n*t,q+m*t);}main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););puts(s[x+99][y]?"YES":"NO");}
| ^~~
main.c:1:1: note: include '<stdlib.h>'
ソースコード
char s[199][99];n=1,m;f(p,q,t,T){for(T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],t=t-s[p+n+n][q+m+m]|(t-=s[p+n][q+m])<2?abs(t)<2:2,f(p+n*t,q+m*t);}main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););puts(s[x+99][y]?"YES":"NO");}