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_38274984_12165.cpp: In function 'void cls()':
0_0_38274984_12165.cpp:7:33: error: 'sum' was not declared in this scope
     memset(book,0,sizeof(book));sum=0;flag=false;
                                 ^
0_0_38274984_12165.cpp:7:39: error: 'flag' was not declared in this scope
     memset(book,0,sizeof(book));sum=0;flag=false;
                                       ^
0_0_38274984_12165.cpp: In function 'int main()':
0_0_38274984_12165.cpp:15:25: error: 'a' was not declared in this scope
     while(scanf("%d%d",&a,&b)==2)
                         ^
0_0_38274984_12165.cpp:15:28: error: 'b' was not declared in this scope
     while(scanf("%d%d",&a,&b)==2)
                            ^
0_0_38274984_12165.cpp:18:42: error: 'flag' was not declared in this scope
         if(a==0&&b==0) {printf("%c\n",((!flag&&sum==1)?'1':'0'));cls();continue;}
                                          ^
0_0_38274984_12165.cpp:18:48: error: 'sum' was not declared in this scope
         if(a==0&&b==0) {printf("%c\n",((!flag&&sum==1)?'1':'0'));cls();continue;}
                                                ^
0_0_38274984_12165.cpp:19:22: error: 'sum' was not declared in this scope
         if(!book[a]) sum++;
                      ^
0_0_38274984_12165.cpp:20:22: error: 'sum' was not declared in this scope
         if(!book[b]) sum++;
                      ^
0_0_38274984_12165.cpp:23:16: error: 'x2' was not declared in this scope
         if(x1==x2) flag=true;
                ^
0_0_38274984_12165.cpp:23:20: error: 'flag' was not declared in this scope
         if(x1==x2) flag=true;
                    ^
0_0_38274984_12165.cpp:24:15: error: 'sum' was not declared in this scope
         else {sum--;f[x1]=x2;}
               ^


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-12-02 11:40:21, Gzip enabled