0_0_26088190_1503.cpp: In function 'int main()': 0_0_26088190_1503.cpp:46:21: error: too few arguments to function 'void update(int, int)' update(i); ^ 0_0_26088190_1503.cpp:13:6: note: declared here void update(int x,int val) ^