F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-18 06:34:55, Gzip enabled