Problem reinforcement
User Henries
Submission Time 2025-12-04 23:46:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reinforcement.cpp: In function ‘bool check(long long int)’:
reinforcement.cpp:110:8: error: ‘netweight’ was not declared in this scope; did you mean ‘weight’?
110 | if (netweight < dist[nr][nc][redrotations][bluerotations]){
| ^~~~~~~~~
| weight
reinforcement.cpp:112:57: error: no matching function for call to ‘std::priority_queue<std::vector<long long int>, std::vector<std::vector<long long int> >, std::greater<std::vector<long long int> > >::push(<brace-enclosed initializer list>)’
112 | pq.push({netweight,nr,nc,redrotations,bluerotations});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from reinforcement.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequ