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_28225370_10698.cpp:3:18: error: expected ']' before ';' token
 #define maxn 3010;
                  ^
0_0_28225370_10698.cpp:12:10: note: in expansion of macro 'maxn'
 int N, F[maxn], W[maxn], T[maxn];
          ^
0_0_28225370_10698.cpp:12:14: error: expected unqualified-id before ']' token
 int N, F[maxn], W[maxn], T[maxn];
              ^
0_0_28225370_10698.cpp:12:23: error: expected unqualified-id before ']' token
 int N, F[maxn], W[maxn], T[maxn];
                       ^
0_0_28225370_10698.cpp:12:32: error: expected unqualified-id before ']' token
 int N, F[maxn], W[maxn], T[maxn];
                                ^
0_0_28225370_10698.cpp:3:18: error: expected ']' before ';' token
 #define maxn 3010;
                  ^
0_0_28225370_10698.cpp:13:14: note: in expansion of macro 'maxn'
 int E, first[maxn], jump[maxn<<1], linker[maxn<<1], idx[maxn<<1];
              ^
0_0_28225370_10698.cpp:13:18: error: expected unqualified-id before ']' token
 int E, first[maxn], jump[maxn<<1], linker[maxn<<1], idx[maxn<<1];
                  ^
0_0_28225370_10698.cpp:13:30: error: expected unqualified-id before '<<' token
 int E, first[maxn], jump[maxn<<1], linker[maxn<<1], idx[maxn<<1];
                              ^
0_0_28225370_10698.cpp:13:47: error: expected unqualified-id before '<<' token
 int E, first[maxn], jump[maxn<<1], linker[maxn<<1], idx[maxn<<1];
                                               ^
0_0_28225370_10698.cpp:13:61: error: expected unqualified-id before '<<' token
 int E, first[maxn], jump[maxn<<1], linker[maxn<<1], idx[maxn<<1];
                                                             ^
0_0_28225370_10698.cpp:3:18: error: expected ']' before ';' token
 #define maxn 3010;
                  ^
0_0_28225370_10698.cpp:15:15: note: in expansion of macro 'maxn'
 vector<int> D[maxn];
               ^
0_0_28225370_10698.cpp:15:19: error: expected unqualified-id before ']' token
 vector<int> D[maxn];
                   ^
0_0_28225370_10698.cpp: In function 'void addEdge(int, int, int)':
0_0_28225370_10698.cpp:18:5: error: 'jump' was not declared in this scope
     jump[E] = first[u];
     ^
0_0_28225370_10698.cpp:18:15: error: 'first' was not declared in this scope
     jump[E] = first[u];
               ^
0_0_28225370_10698.cpp:19:5: error: 'linker' was not declared in this scope
     linker[E] = v;
     ^
0_0_28225370_10698.cpp:20:5: error: 'idx' was not declared in this scope
     idx[E] = w;
     ^
0_0_28225370_10698.cpp: In function 'int find(int)':
0_0_28225370_10698.cpp:23:32: error: 'F' was not declared in this scope
 int find (int x) { return x == F[x] ? x : F[x] == find(F[x]); }
                                ^
0_0_28225370_10698.cpp: In function 'void set(int, int, int)':
0_0_28225370_10698.cpp:26:5: error: 'D' was not declared in this scope
     D[u][v-u-1] = w;
     ^
0_0_28225370_10698.cpp: In function 'int get(int, int)':
0_0_28225370_10698.cpp:30:12: error: 'D' was not declared in this scope
     return D[u][v-u-1];
            ^
0_0_28225370_10698.cpp: In function 'void miniTree()':
0_0_28225370_10698.cpp:34:12: error: 'first' was not declared in this scope
     memset(first, -1, sizeof(first));
            ^
0_0_28225370_10698.cpp:35:33: error: 'F' was not declared in this scope
     for (int i = 0; i < N; i++) F[i] = i;
                                 ^
0_0_28225370_10698.cpp:41:13: error: 'F' was not declared in this scope
             F[find(u)] = find(v);
             ^
0_0_28225370_10698.cpp:45:13: error: reference to 'set' is ambiguous
             set(u, v, inf);
             ^
0_0_28225370_10698.cpp:24:6: note: candidates are: void set(int, int, int)
 void set(int u, int v, int w) {
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
                 from 0_0_28225370_10698.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:90:11: note:                 template<class _Key, class _Compare, class _Alloc> class std::set
     class set
           ^
0_0_28225370_10698.cpp:4:23: error: expected ')' before ';' token
 #define inf 0x7fffffff;
                       ^
0_0_28225370_10698.cpp:45:23: note: in expansion of macro 'inf'
             set(u, v, inf);
                       ^
0_0_28225370_10698.cpp:45:26: error: expected primary-expression before ')' token
             set(u, v, inf);
                          ^
0_0_28225370_10698.cpp:46:13: error: 'W' was not declared in this scope
             W[n--] = S[i].w;
             ^
0_0_28225370_10698.cpp: In function 'int dfs(int, int, int, int, int)':
0_0_28225370_10698.cpp:54:18: error: 'first' was not declared in this scope
     for (int i = first[u]; i + 1; i = jump[i]) {
                  ^
0_0_28225370_10698.cpp:54:39: error: 'jump' was not declared in this scope
     for (int i = first[u]; i + 1; i = jump[i]) {
                                       ^
0_0_28225370_10698.cpp:55:17: error: 'linker' was not declared in this scope
         int v = linker[i];
                 ^
0_0_28225370_10698.cpp:57:34: error: 'idx' was not declared in this scope
         w = min(w, dfs(v, u, rt, idx[i], get(rt, v)));
                                  ^
0_0_28225370_10698.cpp:59:5: error: 'T' was not declared in this scope
     T[id] = min(T[id], w);
     ^
0_0_28225370_10698.cpp: In function 'int main(int, char**)':
0_0_28225370_10698.cpp:72:9: error: 'D' was not declared in this scope
         D[i].clear();
         ^
0_0_28225370_10698.cpp:76:39: error: no matching function for call to 'Edge::Edge(int&, int, int&)'
             S.push_back(Edge(i, i+j, x));
                                       ^
0_0_28225370_10698.cpp:76:39: note: candidates are:
0_0_28225370_10698.cpp:6:8: note: Edge::Edge()
 struct Edge {
        ^
0_0_28225370_10698.cpp:6:8: note:   candidate expects 0 arguments, 3 provided
0_0_28225370_10698.cpp:6:8: note: constexpr Edge::Edge(const Edge&)
0_0_28225370_10698.cpp:6:8: note:   candidate expects 1 argument, 3 provided
0_0_28225370_10698.cpp:6:8: note: constexpr Edge::Edge(Edge&&)
0_0_28225370_10698.cpp:6:8: note:   candidate expects 1 argument, 3 provided
0_0_28225370_10698.cpp:80:38: error: 'T' was not declared in this scope
         for (int i = 1; i <= N; i++) T[i] = inf;
                                      ^
0_0_28225370_10698.cpp:4:23: error: expected ')' before ';' token
 #define inf 0x7fffffff;
                       ^
0_0_28225370_10698.cpp:81:53: note: in expansion of macro 'inf'
         for (int i = 0; i < N; i++) dfs(i, i, i, 1, inf);
                                                     ^
0_0_28225370_10698.cpp:81:56: error: expected primary-expression before ')' token
         for (int i = 0; i < N; i++) dfs(i, i, i, 1, inf);
                                                        ^
0_0_28225370_10698.cpp:85:17: error: 'T' was not declared in this scope
             if (T[i] != W[i]) ans++;
                 ^
0_0_28225370_10698.cpp:85:25: error: 'W' was not declared in this scope
             if (T[i] != W[i]) ans++;
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_28225370_10698.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Iterator2 = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72:   required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >]'
0_0_28225370_10698.cpp:37:28:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefi


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-27 00:14:35, Gzip enabled