molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
26 | loop(i, 0, w.size()){
| ~~~~~~~~~~~~~~
molecules.cpp:26:5: note: in expansion of macro 'loop'
26 | loop(i, 0, w.size()){
| ^~~~
molecules.cpp:29:39: warning: narrowing conversion of 'i' from 'long long int' to 'int' [-Wnarrowing]
29 | else if(v<=u) return vc<int> {i};
| ^
molecules.cpp:29:39: warning: narrowing conversion of 'i' from 'long long int' to 'int' [-Wnarrowing]
molecules.cpp: In function 'int main()':
molecules.cpp:5:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
5 | #define fore(i, a) for(auto&& i:a)
| ^~~
molecules.cpp:47:5: note: in expansion of macro 'fore'
47 | fore(v, find_subset(15, 17, {6, 8, 8, 7})) cout << v <<" ";cout<<endl;
| ^~~~
molecules.cpp:47:64: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
47 | fore(v, find_subset(15, 17, {6, 8, 8, 7})) cout << v <<" ";cout<<endl;
| ^~~~
/tmp/ccdp13Jp.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cc4tvMYO.o:molecules.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status