Problem | weddingcoins |
---|---|
User | cjcube |
Submission Time | 2023-11-10 09:25:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:26: error: expected identifier before numeric constant
7 | int weddingcoins[13] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1];
| ^~~~~~~
weddingcoins.cpp:7:33: error: expected ‘]’ before ‘,’ token
7 | int weddingcoins[13] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:7:33: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:33: error: array must be initialized with a brace-enclosed initializer
weddingcoins.cpp:7:35: error: expected unqualified-id before numeric constant
7 | int weddingcoins[13] = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1];
|