0_0_16757635_25696.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include int pre[1000 ];
^
0_0_16757635_25696.cpp: In function 'int find(int)':
0_0_16757635_25696.cpp:5:11: error: 'pre' was not declared in this scope
while (pre[r ]!=r)
^
0_0_16757635_25696.cpp:10:10: error: 'pre' was not declared in this scope
j=pre[i ];
^
0_0_16757635_25696.cpp: In function 'int main()':
0_0_16757635_25696.cpp:19:23: error: 'scanf' was not declared in this scope
while(scanf("%d",&n) && n) //读入n,如果n为0,结束
^
0_0_16757635_25696.cpp:23:28: error: 'pre' was not declared in this scope
for(i=1;i<=n;i++) { pre[i ]=i; } //共有m条路
^
0_0_16757635_25696.cpp:34:16: error: 'pre' was not declared in this scope
pre[f2 ]=f1;
^
0_0_16757635_25696.cpp:40:27: error: 'printf' was not declared in this scope
printf("%d\n",total);
^
|