Problem | carpark |
---|---|
User | Shadow1 |
Submission Time | 2024-02-29 10:04:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp:1:3: error: expected unqualified-id before ‘if’
1 | if(a[i] == 1 && cnt >= 1) { len.push_back(cnt);
| ^~
carpark.cpp:7:2: error: expected declaration before ‘}’ token
7 | }
| ^
carpark.cpp:9:13: error: ‘len’ was not declared in this scope
9 | int k = sz(len) + 1;
| ^~~
carpark.cpp:9:10: error: ‘sz’ was not declared in this scope
9 | int k = sz(len) + 1;
| ^~
carpark.cpp:11:2: error: expected unqualified-id before ‘if’
11 | if(s < k) {
| ^~
carpark.cpp:23:2: error: ‘cout’ does not name a type
23 | cout << ans << '\n';
| ^~~~
carpark.cpp:25:1: error: expected declaration before ‘}’ token
25 | }
| ^
carpark.cpp: In function ‘int main()’:
carpark.cpp:33:2: error: ‘ios’ has not been declared
33 | ios::sync_with_stdio(false);
| ^~~
carpark.cpp:35:2: error: ‘cin’ was not declare