Problem weddingcoins
User CookieCoder
Submission Time 2025-07-14 15:51:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:19: error: expected identifier before numeric constant
9 | int coins[12] = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^
weddingcoins.cpp:9:20: error: expected ‘]’ before ‘,’ token
9 | int coins[12] = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:9:20: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:20: error: array must be initialized with a brace-enclosed initializer
weddingcoins.cpp:9:22: error: expected unqualified-id before numeric constant
9 | int coins[12] = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^