0_0_17941266_10450.cpp: In function 'int main()': 0_0_17941266_10450.cpp:13:31: error: expected ')' before ';' token ans += i*((n-1-i)*(n-2-i)/2; ^