結果
問題 | No.424 立体迷路 |
ユーザー |
👑 ![]() |
提出日時 | 2017-02-08 07:43:16 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 07:13:27 |
合計ジャッジ時間 | 897 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
コンパイルメッセージ
main.c:1:9: warning: ISO C99 requires whitespace after the macro name 1 | #define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t | ^ main.c:2:17: warning: data definition has no type or storage class 2 | char s[199][99];n=1,m; | ^ main.c:2:17: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:2:21: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int] 2 | char s[199][99];n=1,m; | ^ main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 3 | f(p,q,t){s[p+99][q]++||(1 G G G G);} | ^ main.c: In function ‘f’: main.c:3:1: warning: type of ‘p’ defaults to ‘int’ [-Wimplicit-int] main.c:3:1: warning: type of ‘q’ defaults to ‘int’ [-Wimplicit-int] main.c:3:1: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:11: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] 1 | #define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t | ^~~ main.c:3:27: note: in expansion of macro ‘G’ 3 | f(p,q,t){s[p+99][q]++||(1 G G G G);} | ^ main.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’ +++ |+#include <stdlib.h> 1 | #define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t main.c: At top level: main.c:4:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 4 | main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););f(a,b);n=!puts(s[x+99][y]?"YES":"NO");} | ^~~~ main.c: In function ‘main’: main.c:4:1: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:4:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:4:1: warning: type of ‘b’ d
ソースコード
#define G,abs(t=s[p][q]-s[p+n][q+m])<2&&f(p+n,q+m),s[p+n+n][q+m+m]-s[p][q]|t<0||f(p+n+n,q+m+m),t=n,n=m,m=-t char s[199][99];n=1,m; f(p,q,t){s[p+99][q]++||(1 G G G G);} main(i,a,b,x,y){for(scanf("%*d%*d%d%d%d%d ",&a,&b,&x,&y);gets(s[i++]+1););f(a,b);n=!puts(s[x+99][y]?"YES":"NO");}