Problem supperbox
User chenweilian
Submission Time 2024-02-15 18:58:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supperbox.cpp:64:16: error: expected initializer before ‘cost’
64 | vi need, power cost;
| ^~~~
supperbox.cpp: In function ‘int check(std::string)’:
supperbox.cpp:72:27: error: ‘power’ was not declared in this scope
72 | val[i] += power[j];
| ^~~~~
supperbox.cpp:87:22: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’?
87 | price += cost[i];
| ^~~~
| cosl
supperbox.cpp: In function ‘int main()’:
supperbox.cpp:121:9: error: ‘power’ was not declared in this scope
121 | power.pushb(p);
| ^~~~~
supperbox.cpp:122:9: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’?
122 | cost.pushb(c);
| ^~~~
| cosl