Problem carpark
User ethantanaki
Submission Time 2026-07-11 10:02:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:12:17: error: ‘uncovered’ was not declared in this scope; did you mean ‘noncovered’?
12 | if(binary==0) uncovered++;
| ^~~~~~~~~
| noncovered
carpark.cpp:13:7: error: request for member ‘push_back’ in ‘pos’, which is of non-class type ‘int [N]’
13 | pos.push_back(binary);
| ^~~~~~~~~
carpark.cpp:20:2: error: ‘b’ was not declared in this scope
20 | b=gap.size();
| ^
carpark.cpp:20:8: error: request for member ‘size’ in ‘gap’, which is of non-class type ‘int [N]’
20 | b=gap.size();
| ^~~~
carpark.cpp:22:6: error: ‘i’ was not declared in this scope
22 | for(i=0;i<S-covered;i++) x+=gap[i];
| ^