Problem weddingcoins
User Scissors264
Submission Time 2024-08-14 15:47:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:93: error: expected ‘,’ or ‘;’ before ‘}’ token
6 | vector<int> c = {1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1}};
| ^
weddingcoins.cpp: At global scope:
weddingcoins.cpp:7:2: error: expected unqualified-id before ‘while’
7 | while(a >= 0){
| ^~~~~
weddingcoins.cpp:13:5: error: ‘cout’ does not name a type
13 | cout << b;
| ^~~~
weddingcoins.cpp:14:1: error: expected declaration before ‘}’ token
14 | }
| ^