Problem | carpark |
---|---|
User | LL |
Submission Time | 2025-06-10 17:23:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp: In function ‘int main()’:
carpark.cpp:10:13: error: expected ‘;’ before ‘ans’
10 | gap_len = 0
| ^
| ;
11 | ans = 0;
| ~~~
carpark.cpp:13:8: error: expected ‘;’ before ‘vector’
13 | S -= 1
| ^
| ;
14 | vector<int> gaps;
| ~~~~~~
carpark.cpp:34:4: error: ‘gaps’ was not declared in this scope; did you mean ‘gap’?
34 | gaps.push_back(gap_len);
| ^~~~
| gap
carpark.cpp:39:7: error: ‘gaps’ was not declared in this scope; did you mean ‘gap’?
39 | sort(gaps.begin(), gaps.end());
| ^~~~
| gap
carpark.cpp:44:15: error: expected ‘;’ before ‘cout’
44 | ans = N - ans
| ^
| ;
45 | cout << ans;
| ~~~~