Problem weddingcoins
User Student101
Submission Time 2024-11-01 16:11:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:8:78: error: expected ‘}’ before numeric constant
8 | int arr[13] = {1000000, 500000, 100000, 50000, 10000, 5000, 1000,500,100 50 ,10 ,5, 1};
| ~ ^~
weddingcoins.cpp:8:78: error: expected ‘,’ or ‘;’ before numeric constant
weddingcoins.cpp: At global scope:
weddingcoins.cpp:10:5: error: expected unqualified-id before ‘for’
10 | for (int i=0;i<13;i++){
| ^~~
weddingcoins.cpp:10:18: error: ‘i’ does not name a type
10 | for (int i=0;i<13;i++){
| ^
weddingcoins.cpp:10:23: error: ‘i’ does not name a type
10 | for (int i=0;i<13;i++){
| ^
weddingcoins.cpp:19:5: error: ‘cout’ does not name a type; did you mean ‘counter’?
19 | cout << counter;
| ^~~~
| counter
weddingco