minerals.cpp: In function 'int solve(std::vector<int>, std::vector<int>, int)':
minerals.cpp:25:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int i=mid; i<a.size(); i++) a2.push_back(a[i]);
| ~^~~~~~~~~
minerals.cpp:26:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i=0; i<b.size(); i++){
| ~^~~~~~~~~
minerals.cpp: At global scope:
minerals.cpp:35:5: error: ambiguating new declaration of 'int Solve(int)'
35 | int Solve(int n){
| ^~~~~
In file included from minerals.cpp:2:
minerals.h:5:6: note: old declaration 'void Solve(int)'
5 | void Solve(int N);
| ^~~~~
minerals.cpp: In function 'int Solve(int)':
minerals.cpp:41:1: warning: no return statement in function returning non-void [-Wreturn-type]
41 | }
| ^
minerals.cpp: In function 'int solve(std::vector<int>, std::vector<int>, int)':
minerals.cpp:21:15: warning: control reaches end of non-void function [-Wreturn-type]
21 | vector <int> a1, a2, b1, b2;
| ^~