sparklers.cpp: In function 'std::vector<long long int> g(std::vector<long long int>, long long int)':
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
31 | f(i,0,v.size()){
| ~~~~~~~~~~~~
sparklers.cpp:31:2: note: in expansion of macro 'f'
31 | f(i,0,v.size()){
| ^
sparklers.cpp: In function 'bool solve(std::vector<long long int>, std::vector<long long int>)':
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
52 | f(i,0,v0.size()){
| ~~~~~~~~~~~~~
sparklers.cpp:52:2: note: in expansion of macro 'f'
52 | f(i,0,v0.size()){
| ^
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
58 | f(i,0,v1.size()){
| ~~~~~~~~~~~~~
sparklers.cpp:58:2: note: in expansion of macro 'f'
58 | f(i,0,v1.size()){
| ^
sparklers.cpp:65:12: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | while(p0+1<v0.size() || p1+1<v1.size()){
| ~~~~^~~~~~~~~~
sparklers.cpp:65:30: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | while(p0+1<v0.size() || p1+1<v1.size()){
| ~~~~^~~~~~~~~~
sparklers.cpp:67:10: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | if(p0+1<v0.size() && mn0+v1[p1]>=0){
| ~~~~^~~~~~~~~~
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
68 | f(j,p0+1,v0.size()){
| ~~~~~~~~~~~~~~~~
sparklers.cpp:68:4: note: in expansion of macro 'f'
68 | f(j,p0+1,v0.size()){
| ^
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
75 | f(j,p0,v0.size()){
| ~~~~~~~~~~~~~~
sparklers.cpp:75:4: note: in expansion of macro 'f'
75 | f(j,p0,v0.size()){
| ^
sparklers.cpp:82:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | else if(p1+1<v1.size() && mn1+v0[p0]>=0){
| ~~~~^~~~~~~~~~
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
83 | f(j,p1+1,v1.size()){
| ~~~~~~~~~~~~~~~~
sparklers.cpp:83:4: note: in expansion of macro 'f'
83 | f(j,p1+1,v1.size()){
| ^
sparklers.cpp:8:31: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define f(i,a,b) for(int i=a;i<b;i++)
......
90 | f(j,p1,v1.size()){
| ~~~~~~~~~~~~~~
sparklers.cpp:90:4: note: in expansion of macro 'f'
90 | f(j,p1,v1.size()){
| ^
sparklers.cpp: At global scope:
sparklers.cpp:118:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
118 | main(){
| ^~~~