Problem weddingcoins
User spidermancoolboy
Submission Time 2024-02-02 23:52:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:15: error: expected identifier before numeric constant
7 | int notes[]=[10000, 5000, 1000, 500, 100, 50, 10, 5, 1, 0.5, 0.1, 0.05, 0.01];
| ^~~~~
weddingcoins.cpp:7:20: error: expected ‘]’ before ‘,’ token
7 | int notes[]=[10000, 5000, 1000, 500, 100, 50, 10, 5, 1, 0.5, 0.1, 0.05, 0.01];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:7:20: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:7:6: error: initializer fails to determine size of ‘notes’
7 | int notes[]=[10000, 5000, 1000, 500, 100, 50, 10, 5, 1, 0.5, 0.1, 0.05, 0.01];
| ^~~~~
weddingcoins.cpp:7:20: error: array must be initialized with a brace-enclosed initializer
7 | int notes[]=[10000, 5000, 1000, 500, 100, 50, 10, 5, 1, 0.5, 0.1, 0.05, 0.01];
|