0_0_25862545_2775.cpp: In function 'int main()': 0_0_25862545_2775.cpp:27:24: error: expected ';' before 'ans' scanf("%d%d",&n,&k)ans=0; ^