Problem | carpark |
---|---|
User | personjs |
Submission Time | 2025-03-14 09:57:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp: In function ‘int main()’:
carpark.cpp:13:12: error: ‘n’ was not declared in this scope
13 | cin >> n >> s;
| ^
carpark.cpp:13:17: error: ‘s’ was not declared in this scope
13 | cin >> n >> s;
| ^
carpark.cpp:29:17: error: ‘filled’ was not declared in this scope
29 | filled++;
| ^~~~~~
carpark.cpp:37:25: error: ‘c’ was not declared in this scope
37 | if (o) segs[c]++;
| ^
carpark.cpp:43:17: error: ‘c’ was not declared in this scope
43 | c++;
| ^
carpark.cpp:55:21: error: ‘filled’ was not declared in this scope
55 | for (int i=0; i<filled-s; i++) {
| ^~~~~~