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_36330816_30794.cpp:7:1: error: expected initializer before 'int'
 int s[30],degree[30];
 ^
0_0_36330816_30794.cpp: In function 'int find_set(int)':
0_0_36330816_30794.cpp:9:8: error: 's' was not declared in this scope
  if(x==s[x]) return x;
        ^
0_0_36330816_30794.cpp: In function 'void union_set(int, int)':
0_0_36330816_30794.cpp:15:11: error: 's' was not declared in this scope
  if(x!=y) s[x]=s[y];
           ^
0_0_36330816_30794.cpp: In function 'int main()':
0_0_36330816_30794.cpp:23:4: error: 's' was not declared in this scope
    s[i]=i;
    ^
0_0_36330816_30794.cpp:26:9: error: 's' was not declared in this scope
    cin>>s;
         ^
0_0_36330816_30794.cpp:29:4: error: 'degree' was not declared in this scope
    degree[x]++;
    ^
0_0_36330816_30794.cpp:35:15: error: 'degree' was not declared in this scope
    if(degree(i)%2==1) cnt++;
               ^


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-20 21:29:16, Gzip enabled