0_0_30173000_3556.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include int pre[1000 ];
^
0_0_30173000_3556.cpp: In function 'int find(int)':
0_0_30173000_3556.cpp:7:11: error: 'pre' was not declared in this scope
while (pre[r ]!=r)
^
0_0_30173000_3556.cpp:12:10: error: 'pre' was not declared in this scope
j=pre[i ];
^
0_0_30173000_3556.cpp: In function 'int main()':
0_0_30173000_3556.cpp:23:23: error: 'scanf' was not declared in this scope
while(scanf("%d",&n) && n)
^
0_0_30173000_3556.cpp:27:34: error: 'pre' was not declared in this scope
for(i=1;i<=n;i++) { pre[i ]=i; }
^
0_0_30173000_3556.cpp:43:16: error: 'pre' was not declared in this scope
pre[f2 ]=f1;
^
0_0_30173000_3556.cpp:50:35: error: 'printf' was not declared in this scope
} printf("%d\n",total);
^
|