0_0_30447980_12872.cpp: In function 'int main()': 0_0_30447980_12872.cpp:41:17: error: expected ';' before 'sum' sum+=a[i]-k; ^