結果
| 問題 | No.424 立体迷路 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-10-04 18:49:36 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 30,656 KB |
| 最終ジャッジ日時 | 2026-02-23 22:29:16 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
コンパイルメッセージ
main.c:1:9: warning: missing whitespace after the macro name
1 | #define A,t=m[x][y],t=t==m[x+u*2][y+v*2]&(t-=m[x+u][y+v])>1?2:abs(t)<2,f(x+u*t,y+v*t),t=u,u=-v,v=t
| ^
main.c:2:1: warning: data definition has no type or storage class
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);r=!puts(r);}
| ^
main.c:2:7: warning: data definition has no type or storage class
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);r=!puts(r);}
| ^
main.c: In function ‘main’:
main.c:2:101: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);r=!puts(r);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define A,t=m[x][y],t=t==m[x+u*2][y+v*2]&(t-=m[x+u][y+v])>1?2:abs(t)<2,f(x+u*t,y+v*t),t=u,u=-v,v=t
main.c:2:163: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2 | u,v=1;a,b;char*r="NO",m[120][60];f(x,y,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);r=!puts(r);}
| ^
/usr/bin/ld: /tmp/ccugm0kt.o: in function `main':
main.c:(.text.startup+0x62): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#define A,t=m[x][y],t=t==m[x+u*2][y+v*2]&(t-=m[x+u][y+v])>1?2:abs(t)<2,f(x+u*t,y+v*t),t=u,u=-v,v=t
u,v=1;a,b;char*r="NO",m[120][60];f(x,y,t){m[y+60][x]++||(r=x-a|y-b?r:"YES"A A A A);}main(i,x,y){for(scanf("%*d%*d%d%d%d%d ",&x,&y,&a,&b);gets(m[i++]+1););f(x,y);r=!puts(r);}
tails