Problem weddingcoins
User mingging1748
Submission Time 2024-04-14 15:02:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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