Compile Error

/in/foo.cc: In function 'bool check(int, int, const std::vector<int>&)':
/in/foo.cc:28:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   28 |         if(! vis[y])
      |         ^~
/in/foo.cc:29:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   29 |             return 0;
      |                      ^
/in/foo.cc:29:22: error: expected '}' at end of input
/in/foo.cc:23:50: note: to match this '{'
   23 | bool check(int x, int n, const vector<int> &vec) {
      |                                                  ^
/in/foo.cc:29:22: warning: control reaches end of non-void function [-Wreturn-type]
   29 |             return 0;
      |                      ^

信息

递交者
类型
递交
题目
P2564 工作沟通6级T2 2023.12
语言
C++
递交时间
2026-08-10 09:05:08
评测时间
2026-08-10 09:05:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes