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_20414314_18316.cpp: In function 'int revs(int)':
0_0_20414314_18316.cpp:23:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
 int revs(int x){ if(!x) return ; swap(ch[x][0],ch[x][1]); rev[x]^=1;}
                         ^
0_0_20414314_18316.cpp: In function 'void update(int)':
0_0_20414314_18316.cpp:27:5: error: 'i' was not declared in this scope
  mn[i]=val[i]; mni[i]=i;
     ^
0_0_20414314_18316.cpp: In function 'void makeroot(int)':
0_0_20414314_18316.cpp:57:28: error: 'rev' cannot be used as a function
  access(x); splay(x); rev(x); 
                            ^
0_0_20414314_18316.cpp: In function 'void cut(int, int)':
0_0_20414314_18316.cpp:62:23: error: expected primary-expression before '|' token
 void cut(int x,int y){|
                       ^
0_0_20414314_18316.cpp: In function 'int main()':
0_0_20414314_18316.cpp:75:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    next[tt]=g[j]; g[j]=tt;
           ^
0_0_20414314_18316.cpp:75:13: error: 'g' was not declared in this scope
    next[tt]=g[j]; g[j]=tt;
             ^
0_0_20414314_18316.cpp:81:13: error: 'g' was not declared in this scope
   for(int i=g[x];i;i=next[i]){
             ^
0_0_20414314_18316.cpp:81:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   for(int i=g[x];i;i=next[i]){
                            ^


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-22 18:35:25, Gzip enabled