Main.cpp: In function 'int32_t main()':
Main.cpp:20:19: error: 'N' was not declared in this scope
20 | for(int i = 1; i<N-1; i++) {
| ^
Main.cpp:34:3: error: return-statement with no value, in function returning 'int32_t' {aka 'int'} [-fpermissive]
34 | return;
| ^~~~~~
Main.cpp:38:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i = 1; i<ps_filt.size(); i++) {
| ~^~~~~~~~~~~~~~~
Main.cpp:41:4: error: return-statement with no value, in function returning 'int32_t' {aka 'int'} [-fpermissive]
41 | return;
| ^~~~~~
Main.cpp:37:6: warning: unused variable 'ans' [-Wunused-variable]
37 | int ans = 0;
| ^~~