Problem | candles |
---|---|
User | impotato |
Submission Time | 2023-11-30 22:12:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candles.cpp:6:1: error: ‘cin’ does not name a type
6 | cin >> a >> b;
| ^~~
candles.cpp:7:11: error: array bound is not an integer constant before ‘]’ token
7 | string c[a];
| ^
candles.cpp:8:11: error: array bound is not an integer constant before ‘]’ token
8 | string x[a];
| ^
candles.cpp:9:1: error: expected unqualified-id before ‘for’
9 | for (int i = 0;i < a;i++) {
| ^~~
candles.cpp:9:17: error: ‘i’ does not name a type
9 | for (int i = 0;i < a;i++) {
| ^
candles.cpp:9:23: error: ‘i’ does not name a type
9 | for (int i = 0;i < a;i++) {
| ^
candles.cpp:16:16: error: ‘x’ was not declared in this scope
16 | int n = sizeof(x) / sizeof(x[0]);
| ^
candles.cpp:16:28: error: ‘x’ was not declared in this scope
16 | int n = sizeof(x) / sizeof(x[0]);
|