gondola.cpp: In function 'long long int pow(long long int, int)':
gondola.cpp:12:15: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
12 | return ((d*d)%MOD*c)%MOD;
| ~~~~~^
| |
| long long int
gondola.cpp:4:18: error: expected ')' before ';' token
4 | #define MOD 1e9+9;
| ^
gondola.cpp:12:16: note: in expansion of macro 'MOD'
12 | return ((d*d)%MOD*c)%MOD;
| ^~~
gondola.cpp:12:9: note: to match this '('
12 | return ((d*d)%MOD*c)%MOD;
| ^
gondola.cpp:12:20: error: invalid type argument of unary '*' (have 'long long int')
12 | return ((d*d)%MOD*c)%MOD;
| ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:77:6: error: redeclaration of 'int e'
77 | int e=n-e;
| ^
gondola.cpp:56:6: note: 'int e' previously declared here
56 | int e=0,k[250000]={0};
| ^
gondola.cpp:79:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for(int i=1;i<v.size();i++){
| ~^~~~~~~~~
gondola.cpp:82:25: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
82 | ans=(ans*pow(p,e-i+1))%MOD;
| ~~~~~~~~~~~~~~~~~~^
| |
| long long int