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

Compile Error

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