| Problem | weddingcoins |
|---|---|
| User | yuanbin |
| Submission Time | 2026-11-13 15:56:15 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘int’
6 | int i = 0, c=0;
| ^~~
weddingcoins.cpp:10:11: error: ‘i’ was not declared in this scope
10 | if (x<v[i]){
| ^
weddingcoins.cpp:14:10: error: ‘i’ was not declared in this scope
14 | x -= v[i];
| ^
weddingcoins.cpp:15:3: error: ‘c’ was not declared in this scope
15 | c++;
| ^
weddingcoins.cpp:17:8: error: ‘c’ was not declared in this scope
17 | cout<<c;
| ^