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_25991504_18237.cpp:10:1: error: 'map' does not name a type
 map< pair<int,int> , int > mp ; 
 ^
0_0_25991504_18237.cpp: In function 'int dsu(int, int)':
0_0_25991504_18237.cpp:16:57: error: too few arguments to function 'int dsu(int, int)'
  return x == ds[id][x] ? x : ds[id][x] = dsu( ds[id][x] ) ; 
                                                         ^
0_0_25991504_18237.cpp:15:5: note: declared here
 int dsu( int x , int id ) {
     ^
0_0_25991504_18237.cpp: In function 'void Ins(int, int, int)':
0_0_25991504_18237.cpp:24:6: error: 'T' was not declared in this scope
  f[++T].y = v , f[T].l = g[u] , g[u] = T ; f[T].z = c ;
      ^
0_0_25991504_18237.cpp: In function 'int main()':
0_0_25991504_18237.cpp:43:20: error: 'u' was not declared in this scope
    scanf("%d%d%d",&u,&v,&c ) ; 
                    ^
0_0_25991504_18237.cpp:43:23: error: 'v' was not declared in this scope
    scanf("%d%d%d",&u,&v,&c ) ; 
                       ^
0_0_25991504_18237.cpp:43:26: error: 'c' was not declared in this scope
    scanf("%d%d%d",&u,&v,&c ) ; 
                          ^
0_0_25991504_18237.cpp:46:20: error: incompatible types in assignment of 'int' to 'int [100020]'
   rep(i,1,n) ds[i] = i , si[i] = 1 ; 
                    ^
0_0_25991504_18237.cpp:46:32: error: incompatible types in assignment of 'int' to 'int [100020]'
   rep(i,1,n) ds[i] = i , si[i] = 1 ; 
                                ^
0_0_25991504_18237.cpp:47:8: error: 'po' was not declared in this scope
   Dfs( po ) ; 
        ^
0_0_25991504_18237.cpp:48:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   rep(i,1,n) if( dsu(i,1)==ds[i] ) {
                                ^
0_0_25991504_18237.cpp:52:22: error: 'a' was not declared in this scope
    scanf("%d%d%d%d",&a,&b,&s,&t ) ; 
                      ^
0_0_25991504_18237.cpp:52:25: error: 'b' was not declared in this scope
    scanf("%d%d%d%d",&a,&b,&s,&t ) ; 
                         ^
0_0_25991504_18237.cpp:52:28: error: 's' was not declared in this scope
    scanf("%d%d%d%d",&a,&b,&s,&t ) ; 
                            ^
0_0_25991504_18237.cpp:52:31: error: 't' was not declared in this scope
    scanf("%d%d%d%d",&a,&b,&s,&t ) ; 
                               ^


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-29 13:51:35, Gzip enabled