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

Compile Error

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