Problem | weddingcoins |
---|---|
User | mingging1748 |
Submission Time | 2024-04-14 15:00:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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, 1000, 5000, 10000, 50000, 100000, 500000, 1000000];
| ^
weddingcoins.cpp:5:20: error: expected ‘]’ before ‘,’ token
5 | int coins[13] = [1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 1000000];
| ^
| ]
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, 1000, 5000, 10000, 50000, 100000, 500000, 1000000];
| ^