gondola.cpp: In function 'i64 pow(i64, i64)':
gondola.cpp:16:47: error: 'mod' was not declared in this scope
if(zereg & 1) return (zereg * ((tmp * tmp) % mod) ) % mod;
^~~
gondola.cpp:16:47: note: suggested alternative: 'modf'
if(zereg & 1) return (zereg * ((tmp * tmp) % mod) ) % mod;
^~~
modf
gondola.cpp:17:24: error: 'mod' was not declared in this scope
return ((tmp * tmp) % mod);
^~~
gondola.cpp:17:24: note: suggested alternative: 'modf'
return ((tmp * tmp) % mod);
^~~
modf
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:52:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i + 1 < rep.size(); i++){
~~~~~~^~~~~~~~~~~~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:79:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < rep.size(); i++){
~~^~~~~~~~~~~~
gondola.cpp:101:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < rep.size(); i++){
~~^~~~~~~~~~~~
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:123:5: error: redefinition of 'int countReplacement(int, int*)'
int countReplacement(int n, int arr[]){
^~~~~~~~~~~~~~~~
gondola.cpp:22:5: note: 'int countReplacement(int, int*)' previously defined here
int countReplacement(int n, int inputSeq[]){
^~~~~~~~~~~~~~~~
gondola.cpp:124:15: error: 'inputSeq' was not declared in this scope
if(!valid(n, inputSeq)) return 0; //sha
^~~~~~~~
gondola.cpp:124:15: note: suggested alternative: 'newSeq'
if(!valid(n, inputSeq)) return 0; //sha
^~~~~~~~
newSeq
gondola.cpp:130:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(rep.size() == n) res = rep.size();
~~~~~~~~~~~^~~~
gondola.cpp:135:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < rep.size(); i++) {
~~^~~~~~~~~~~~
gondola.cpp:138:10: error: 'mod' was not declared in this scope
res %= mod;
^~~
gondola.cpp:138:10: note: suggested alternative: 'modf'
res %= mod;
^~~
modf