gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:83:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:122:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
122 | for(int i=1;i<v2.size();i++)
| ~^~~~~~~~~~
gondola.cpp:124:44: error: request for member 'first' in 'v2.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
124 | ans=ans*fastPow(v2.size()-i, v2[i].first-v2[i-1].first)%MOD;
| ^~~~~
gondola.cpp:124:58: error: request for member 'first' in 'v2.std::vector<int>::operator[](((std::vector<int>::size_type)(i - 1)))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
124 | ans=ans*fastPow(v2.size()-i, v2[i].first-v2[i-1].first)%MOD;
| ^~~~~
gondola.cpp:127:8: error: 'mn' was not declared in this scope; did you mean 'n'?
127 | if(mn>n) ans=ans*n%MOD;
| ^~
| n