xylophone.cpp: In function 'void check(std::vector<int>&, std::vector<int>&, int)':
xylophone.cpp:18:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i = 0; i < signSwap.size();i++){
| ~~^~~~~~~~~~~~~~~~~
xylophone.cpp:46:12: error: cannot convert 'std::vector<int>' to 'int'
46 | answer(ans);
| ^~~
| |
| std::vector<int>
In file included from xylophone.cpp:1:
xylophone.h:5:17: note: initializing argument 1 of 'void answer(int, int)'
5 | void answer(int i, int a);
| ~~~~^
xylophone.cpp:11:9: warning: unused variable 'startSign' [-Wunused-variable]
11 | int startSign = sign;
| ^~~~~~~~~
xylophone.cpp: In function 'void solve(int)':
xylophone.cpp:58:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int i = 0; i < two.size() - 1;i++){
| ~~^~~~~~~~~~~~~~~~
xylophone.cpp:67:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
67 | return 0;
| ^