0_0_29581789_902.cpp: In function 'int main()':
0_0_29581789_902.cpp:12:3: error: expected ';' before 'for'
for(int i=1;i<=a;i++)
^
0_0_29581789_902.cpp:12:15: error: 'i' was not declared in this scope
for(int i=1;i<=a;i++)
^
0_0_29581789_902.cpp:18:22: error: 'ans' was not declared in this scope
printf("%d\n\n",ans);
^
|