Problem weddingcoins
User PlayVoltz
Submission Time 2023-07-06 16:48:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:17: error: expected identifier before numeric constant
6 | int arr[12] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5]
| ^~~~~~~
weddingcoins.cpp:6:24: error: expected ‘]’ before ‘,’ token
6 | int arr[12] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5]
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:6:24: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:24: error: array must be initialized with a brace-enclosed initializer
weddingcoins.cpp:6:26: error: expected unqualified-id before numeric constant
6 | int arr[12] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5]
| ^~~~~~