Problem | coincombinations |
---|---|
User | zsinfo2010 |
Submission Time | 2023-11-15 14:19:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coincombinations.cpp: In function ‘int main()’:
coincombinations.cpp:8:21: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | scanf("%d %d", &n, &v);
| ^
| yn
coincombinations.cpp:8:25: error: ‘v’ was not declared in this scope
8 | scanf("%d %d", &n, &v);
| ^
coincombinations.cpp:10:22: error: ‘coins’ was not declared in this scope; did you mean ‘coin’?
10 | scanf("%d", &coins[i]);
| ^~~~~
| coin
coincombinations.cpp:21:22: error: ‘coins’ was not declared in this scope; did you mean ‘coin’?
21 | if (j >= coins[i]) {
| ^~~~~
| coin