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_33777264_17659.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include int pre[1000 ];
          ^
0_0_33777264_17659.cpp: In function 'int find(int)':
0_0_33777264_17659.cpp:9:11: error: 'pre' was not declared in this scope
    while (pre[r ]!=r)
           ^
0_0_33777264_17659.cpp:19:10: error: 'pre' was not declared in this scope
        j=pre[i ];
          ^
0_0_33777264_17659.cpp: In function 'int main()':
0_0_33777264_17659.cpp:37:23: error: 'scanf' was not declared in this scope
    while(scanf("%d",&n) && n)         //读入n,如果n为0,结束
                       ^
0_0_33777264_17659.cpp:45:28: error: 'pre' was not declared in this scope
        for(i=1;i<=n;i++) { pre[i ]=i; }                //共有m条路
                            ^
0_0_33777264_17659.cpp:67:16: error: 'pre' was not declared in this scope
                pre[f2 ]=f1;
                ^
0_0_33777264_17659.cpp:79: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-09-29 17:34:48, Gzip enabled