/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:218:44: error: binding reference of type 'int&' to 'const int' discards qualifiers
  218 |                 if (!ring[y]) init_2(y, i, inf);
      |                                            ^~~
/in/foo.cc:65:41: note:   initializing argument 3 of 'void init_2(int&, int&, int&)'
   65 | inline void init_2(int &x, int &y, int &flow)
      |                                    ~~~~~^~~~
/in/foo.cc:230:31: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
  230 |                 init_2(i, ed, -score[i]);
      |                               ^~~~~~~~~
/in/foo.cc:65:41: note:   initializing argument 3 of 'void init_2(int&, int&, int&)'
   65 | inline void init_2(int &x, int &y, int &flow)
      |                                    ~~~~~^~~~

信息

递交者
类型
递交
题目
P1607 植物大战僵尸
语言
C++
递交时间
2025-06-13 10:47:22
评测时间
2025-06-13 10:47:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes