/ Vijos /

记录详情

Compile Error

foo.cc:2:21: error: expected unqualified-id before '!' token
    2 | using namespace std;![](http://)
      |                     ^
foo.cc: In function 'bool dfs(int)':
foo.cc:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |     for (int j = 0; j < edges[i].size(); j++) {
      |                     ~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:31:21: error: 'n' was not declared in this scope
   31 |     scanf("%d %d", &n, &m);
      |                     ^
foo.cc:31:25: error: 'm' was not declared in this scope
   31 |     scanf("%d %d", &n, &m);
      |                         ^
foo.cc:43:27: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   43 |             if (arr[i][j] == 1 ^ (((i + j) & 1) == ((x + y) & 1)))
      |                 ~~~~~~~~~~^~~~
foo.cc:34:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   34 |         scanf("%s", str + 1);
      |         ~~~~~^~~~~~~~~~~~~~~
foo.cc:63:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   63 |     scanf("%d", &k);
      |     ~~~~~^~~~~~~~~~
foo.cc:73:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   73 |         scanf("%d %d", &x, &y);
      |         ~~~~~^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1718 兔兔和蛋蛋
语言
C++
递交时间
2021-12-29 18:59:07
评测时间
2021-12-29 18:59:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes