Problem | weddingcoins |
---|---|
User | Kannan |
Submission Time | 2023-12-30 18:25:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:8:12: error: scalar object ‘opt’ requires one element in initializer
8 | long long opt = {0.01, 0.05, 0.1, 0.5, 1, 5, 10, 50, 100, 500, 1000, 5000, 10000};
| ^~~
weddingcoins.cpp:9:8: error: ‘n’ was not declared in this scope
9 | while(n != 0) {
| ^
weddingcoins.cpp:10:6: error: expected ‘(’ before ‘x’
10 | if x < opt[i]
| ^
| (
weddingcoins.cpp:12:10: error: ‘i’ was not declared in this scope
12 | x-=opt[i];
| ^