/ :-) /

记录详情

Compile Error

/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:17:12: error: 'drix' was not declared in this scope
   int xx=x+drix[k],yy=y+driy[k];
            ^~~~
/in/foo.cc:17:12: note: suggested alternative: 'dirx'
   int xx=x+drix[k],yy=y+driy[k];
            ^~~~
            dirx
/in/foo.cc:19:19: error: 'yy' was not declared in this scope
   if(xx>0&&xx<=n&&yy>0&&yy<=m &&oil[xx][yy]==true)
                   ^~
/in/foo.cc:19:19: note: suggested alternative: 'y'
   if(xx>0&&xx<=n&&yy>0&&yy<=m &&oil[xx][yy]==true)
                   ^~
                   y
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:8: error: expected ';' before '{' token
  memset{oil,false,sizeof(oil)};
        ^
/in/foo.cc:25:31: warning: statement is a reference, not call, to function 'memset' [-Waddress]
  memset{oil,false,sizeof(oil)};
                               ^
/in/foo.cc:25:31: warning: statement has no effect [-Wunused-value]
/in/foo.cc:32:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
     scanf("%d",c);
                 ^
/in/foo.cc:45:2: error: 'peintf' was not declared in this scope
  peintf("%d",ans);
  ^~~~~~
/in/foo.cc:45:2: note: suggested alternative: 'printf'
  peintf("%d",ans);
  ^~~~~~
  printf

信息

递交者
类型
递交
题目
油田//改编与弱化版
语言
C++
递交时间
2018-10-27 10:41:35
评测时间
2018-10-27 10:41:35
评测机
分数
0
总耗时
242ms
峰值内存
29.566 MiB