Problem | candles |
---|---|
User | impotato |
Submission Time | 2023-11-30 22:11:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candles.cpp:3:1: error: ‘cin’ does not name a type
3 | cin >> a >> b;
| ^~~
candles.cpp:4:1: error: ‘string’ does not name a type
4 | string c[a];
| ^~~~~~
candles.cpp:5:1: error: ‘string’ does not name a type
5 | string x[a];
| ^~~~~~
candles.cpp:6:1: error: expected unqualified-id before ‘for’
6 | for (int i = 0;i < a;i++) {
| ^~~
candles.cpp:6:17: error: ‘i’ does not name a type
6 | for (int i = 0;i < a;i++) {
| ^
candles.cpp:6:23: error: ‘i’ does not name a type
6 | for (int i = 0;i < a;i++) {
| ^
candles.cpp:13:16: error: ‘x’ was not declared in this scope
13 | int n = sizeof(x) / sizeof(x[0]);
| ^
candles.cpp:13:28: error: ‘x’ was not declared in this scope
13 | int n = sizeof(x) / sizeof(x[0]);
| ^
candles.cpp:14:5: error: expect