0_0_27734190_31586.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_27734190_31586.cpp: In function 'int main()':
0_0_27734190_31586.cpp:5:24: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF&&n!=0)
^
0_0_27734190_31586.cpp:5:27: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF&&n!=0)
^
0_0_27734190_31586.cpp:12:16: error: expected ';' before '{' token
{
^
0_0_27734190_31586.cpp:12:16: error: expected primary-expression before '{' token
0_0_27734190_31586.cpp:12:16: error: expected ')' before '{' token
0_0_27734190_31586.cpp:15:29: error: 'printf' was not declared in this scope
printf("%d\n",a[n-1]);
^
|