0_0_14559257_5398.cpp:194:10: error: conflicting declaration 'const LL mm'
const LL mm=(1e9)+7;
^
0_0_14559257_5398.cpp:101:11: note: previous declaration as 'long long int mm [101][101]'
long long mm[MAX][MAX];
^
0_0_14559257_5398.cpp: In function 'LL powermod(LL, LL)':
0_0_14559257_5398.cpp:200:28: error: invalid operands of types 'LL {aka long long int}' and 'long long int [101][101]' to binary 'operator%'
if(b&1)res=(res*a)%mm;
^
0_0_14559257_5398.cpp:202:10: error: invalid use of non-lvalue array
a%=mm;
^
0_0_14559257_5398.cpp:202:10: error: in evaluation of 'operator%=(LL {aka long long int}, long long int [101][101])'
0_0_14559257_5398.cpp:205:16: error: invalid operands of types 'LL {aka long long int}' and 'long long int [101][101]' to binary 'operator%'
return res%mm;
^
0_0_14559257_5398.cpp: At global scope:
0_0_14559257_5398.cpp:211:12: error: conflicting declaration 'int vis [109]'
int vis[N+9];
^
0_0_14559257_5398.cpp:102:5: note: previous declaration as 'int vis [101]'
int vis[MAX];
^
0_0_14559257_5398.cpp: In function 'int main()':
0_0_14559257_5398.cpp:226:5: error: redefinition of 'int main()'
int main()
^
0_0_14559257_5398.cpp:125:5: note: 'int main()' previously defined here
int main()
^
0_0_14559257_5398.cpp:229:45: error: invalid operands of types 'LL {aka long long int}' and 'long long int [101][101]' to binary 'operator%'
for(int i=1; i<=N; i++) a[i]=a[i-1]*i%mm;
^
|