Problem coins
User shenshiqi
Submission Time 2025-12-10 15:44:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shahrnaz.cpp: In function ‘int find_coin(std::vector<int>)’:
shahrnaz.cpp:3:5: error: ‘ll’ was not declared in this scope
3 | ll pow2 = 1;
| ^~
shahrnaz.cpp:4:7: error: expected ‘;’ before ‘total’
4 | ll total = 0;
| ^~~~~~
| ;
shahrnaz.cpp:5:12: error: expected ‘;’ before ‘i’
5 | for (ll i = 0; i < 8; ++i){
| ^~
| ;
shahrnaz.cpp:5:20: error: ‘i’ was not declared in this scope
5 | for (ll i = 0; i < 8; ++i){
| ^
shahrnaz.cpp:7:13: error: ‘total’ was not declared in this scope
7 | total += pow2;
| ^~~~~
shahrnaz.cpp:7:22: error: ‘pow2’ was not declared in this scope; did you mean ‘powl’?
7 | total += pow2;
| ^~~~
| powl
shahrnaz.cpp:9:9: error: ‘pow2’ was not declared in this scope; di