Problem catfight
User PicradSG
Submission Time 2026-03-10 16:20:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
catfight.cpp: In function ‘int main()’:
catfight.cpp:10:5: error: ‘cin’ was not declared in this scope
10 | cin >> N >> P;
| ^~~
catfight.cpp:23:28: error: ‘max’ was not declared in this scope; did you mean ‘maxn’?
23 | if(sum <= P )ans = max(ans, ptr-i+1 );
| ^~~
| maxn
catfight.cpp:25:5: error: ‘cout’ was not declared in this scope
25 | cout << ans << endl;
| ^~~~
catfight.cpp:25:20: error: ‘endl’ was not declared in this scope
25 | cout << ans << endl;
| ^~~~