shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:5:5: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
5 | vector<int>menos;
| ^~~~~~
| std::vector
In file included from /usr/include/c++/9/vector:67,
from shoes.h:5,
from shoes.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: 'std::vector' declared here
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
shoes.cpp:5:12: error: expected primary-expression before 'int'
5 | vector<int>menos;
| ^~~
shoes.cpp:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for(int i=0;i<s.size();i++){
| ~^~~~~~~~~
shoes.cpp:7:19: error: 'menos' was not declared in this scope
7 | if(s[i]<0)menos.push_back(i);
| ^~~~~
shoes.cpp:9:19: error: 'menos' was not declared in this scope
9 | for(int i=0;i<menos.size();i++){
| ^~~~~
shoes.cpp:10:12: error: 'abs' was not declared in this scope
10 | x+=abs(i*2-menos[i]);
| ^~~