/ Vijos /

记录详情

Compile Error

/in/foo.cc:16:16: error: stray '#' in program
  if(nox==b.xx &#include<cstdio>
                ^
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:16:17: error: 'include' was not declared in this scope
  if(nox==b.xx &#include<cstdio>
                 ^~~~~~~
/in/foo.cc:16:25: error: 'cstdio' was not declared in this scope
  if(nox==b.xx &#include<cstdio>
                         ^~~~~~
/in/foo.cc:18:1: error: expected primary-expression before 'struct'
 struct pt
 ^~~~~~
/in/foo.cc:18:1: error: expected ')' before 'struct'
/in/foo.cc:27:1: error: a function-definition is not allowed here before '{' token
 {if(visited[nox][noy]==1)return;
 ^
/in/foo.cc:21:4: warning: unused variable 'b' [-Wunused-variable]
 pt b,c;
    ^
/in/foo.cc:21:6: warning: unused variable 'c' [-Wunused-variable]
 pt b,c;
      ^
/in/foo.cc:22:5: warning: unused variable 'count' [-Wunused-variable]
 int count=0;
     ^~~~~
/in/foo.cc:23:5: warning: unused variable 'd' [-Wunused-variable]
 int d[2][9]={1,2,2,1,-1,-2,-2,-1,0,
     ^
/in/foo.cc:25:6: warning: unused variable 'visited' [-Wunused-variable]
 char visited[1000][1000]={0};
      ^~~~~~~
/in/foo.cc:58:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2017-07-17 18:23:57
评测时间
2017-07-17 18:23:57
评测机
分数
0
总耗时
115ms
峰值内存
14.602 MiB