0_0_13786809_14720.cpp: In function 'int main()':
0_0_13786809_14720.cpp:22:62: error: invalid initialization of reference of type 'int&' from expression of type 'double'
upd(ans, f[n / i + 1] * cnt + f[n / i] * (i - cnt) + x * i);
^
0_0_13786809_14720.cpp:5:6: note: in passing argument 1 of 'void upd(int&, int)'
void upd(int &x, const int y)
^
|