gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:33:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<orig.size();i++){
^
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:50:6: error: 'inputSeq' was not declared in this scope
if(inputSeq[i]<=n){
^
gondola.cpp:54:15: error: 'inputSeq' was not declared in this scope
umax(broken,inputSeq[i]-n);
^
gondola.cpp:11:37: note: in definition of macro 'umax'
#define umax( x , y ) x = max( x , (y) )
^
gondola.cpp:49:7: warning: unused variable 'nxx' [-Wunused-variable]
int nxx=nx(i,n);
^
gondola.cpp:72:22: error: 'ogon' was not declared in this scope
replacementSeq[i]=ogon[repcand.begin()->st];
^
gondola.cpp:6:12: error: request for member 'first' in '* repcand.std::set<_Key, _Compare, _Alloc>::begin<int, std::less<int>, std::allocator<int> >().std::_Rb_tree_const_iterator<_Tp>::operator-><int>()', which is of non-class type 'const int'
#define st first
^
gondola.cpp:72:44: note: in expansion of macro 'st'
replacementSeq[i]=ogon[repcand.begin()->st];
^
gondola.cpp:6:12: error: request for member 'first' in '* repcand.std::set<_Key, _Compare, _Alloc>::begin<int, std::less<int>, std::allocator<int> >().std::_Rb_tree_const_iterator<_Tp>::operator-><int>()', which is of non-class type 'const int'
#define st first
^
gondola.cpp:73:26: note: in expansion of macro 'st'
orig[repcand.begin()->st]=i+n+1;
^
gondola.cpp:76:22: error: 'ogon' was not declared in this scope
replacementSeq[i]=ogon[repind[i]];
^