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_26136840_3308.cpp: In function 'void dfs(int, int)':
0_0_26136840_3308.cpp:31:9: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
  son[u] ? dfs(son[u], top) : 0;
         ^
0_0_26136840_3308.cpp:32:82: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
  for (int i = head[u], v; i; i = e[i].next) (v = e[i].v) != fa[u] && v != son[u] ? dfs(v, v) : 0;
                                                                                  ^
0_0_26136840_3308.cpp: In function 'int query(int, int)':
0_0_26136840_3308.cpp:61:27: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
   dep[bl[u]] < dep[bl[v]] ? fswap(u, v) : 0;
                           ^
0_0_26136840_3308.cpp:64:18: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
  dep[u] > dep[v] ? fswap(u, v) : 0;
                  ^
0_0_26136840_3308.cpp: In function 'bool check(int, int, int, int, int, long long int)':
0_0_26136840_3308.cpp:73:3: error: reference to 'tm' is ambiguous
   tm -= x - mn[rt];
   ^
0_0_26136840_3308.cpp:68:5: note: candidates are: int tm
 int tm;
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_26136840_3308.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_26136840_3308.cpp:74:10: error: reference to 'tm' is ambiguous
   return tm >= 0;
          ^
0_0_26136840_3308.cpp:68:5: note: candidates are: int tm
 int tm;
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_26136840_3308.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^
0_0_26136840_3308.cpp: In function 'bool check(int, int, long long int)':
0_0_26136840_3308.cpp:84:27: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
   dep[bl[u]] < dep[bl[v]] ? fswap(u, v) : 0;
                           ^
0_0_26136840_3308.cpp:88:18: error: second operand to the conditional operator is of type 'void', but the third operand is neither a throw-expression nor of type 'void'
  dep[u] > dep[v] ? fswap(u, v) : 0;
                  ^
0_0_26136840_3308.cpp: In function 'int main()':
0_0_26136840_3308.cpp:113:5: error: reference to 'tm' is ambiguous
     tm = k / b;
     ^
0_0_26136840_3308.cpp:68:5: note: candidates are: int tm
 int tm;
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_26136840_3308.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:88:10: note:                 struct tm
   struct tm {
          ^


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-26 16:39:32, Gzip enabled