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

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:15: error: expected identifier before numeric constant
6 | int arr[] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5];
| ^~~~~~~
weddingcoins.cpp:6:22: error: expected ‘]’ before ‘,’ token
6 | int arr[] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:6:22: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:6:6: error: initializer fails to determine size of ‘arr’
6 | int arr[] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5];
| ^~~
weddingcoins.cpp:6:22: error: array must be initialized with a brace-enclosed initializer
6 | int arr[] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500,