Problem catfight
User H3lloWorld
Submission Time 2026-07-04 20:25:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:4:18: error: declaration does not declare anything [-fpermissive]
4 | #define int long long;
| ^~~~
catfight.cpp:10:5: note: in expansion of macro ‘int’
10 | int n,p;cin>>n>>p;
| ^~~
catfight.cpp:10:9: error: ‘n’ was not declared in this scope
10 | int n,p;cin>>n>>p;
| ^
catfight.cpp:10:11: error: ‘p’ was not declared in this scope
10 | int n,p;cin>>n>>p;
| ^
catfight.cpp:4:18: error: template argument 1 is invalid
4 | #define int long long;
| ^~~~
catfight.cpp:11:12: note: in expansion of macro ‘int’
11 | vector<int> ls;
| ^~~
catfight.cpp:4:18: error: template argument 2 is invalid
4 | #define int long long;
| ^~~~
catfight.cpp:11:12: note: in expansion of macro