Problem | weddingcoins |
---|---|
User | CookieCoder |
Submission Time | 2025-07-14 15:52:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:15: error: expected identifier before numeric constant
9 | int coins = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^
weddingcoins.cpp:9:16: error: expected ‘]’ before ‘,’ token
9 | int coins = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:9:16: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:16: error: invalid user-defined conversion from ‘main()::<lambda()>’ to ‘int’ [-fpermissive]
weddingcoins.cpp:9:14: note: candidate is: ‘constexpr main()::<lambda()>::operator void (*)()() const’ <near match>
9 | int coins = [0, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000, 100000];
| ^
weddingcoins.cpp:9:14: note: no known