gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:4:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define lp(i,a,b) for(int i=a;i<b;i++)
gondola.cpp:65:6:
lp(i,0,p.size()){
~~~~~~~~~~~~
gondola.cpp:65:3: note: in expansion of macro 'lp'
lp(i,0,p.size()){
^~
gondola.cpp: In function 'long long int countReplacement(int, int*)':
gondola.cpp:89:4: error: ambiguating new declaration of 'long long int countReplacement(int, int*)'
ll countReplacement(int n, int inputSeq[])
^~~~~~~~~~~~~~~~
In file included from gondola.cpp:2:0:
gondola.h:12:5: note: old declaration 'int countReplacement(int, int*)'
int countReplacement(int n, int inputSeq[]);
^~~~~~~~~~~~~~~~
gondola.cpp:107:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(p.size() == n+1 ) ans = n ;
~~~~~~~~~^~~~~~
gondola.cpp:4:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define lp(i,a,b) for(int i=a;i<b;i++)
gondola.cpp:111:8:
lp(i,1,p.size())
~~~~~~~~~~~~
gondola.cpp:111:5: note: in expansion of macro 'lp'
lp(i,1,p.size())
^~