0_0_29741877_30145.cpp: In function 'int main()':
0_0_29741877_30145.cpp:63:48: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
ans=add(ans,(1LL)*(dis[q[i]]*i)%mod);
^
0_0_29741877_30145.cpp:15:13: note: in passing argument 1 of 'void add(int&, int)'
inline void add(int &x,int y)
^
|