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_30291913_28805.cpp: In function 'int dfs()':
0_0_30291913_28805.cpp:9:28: error: 'size' was not declared in this scope
     memset(dp,-1,size(dp[0])*n+1);
                            ^
0_0_30291913_28805.cpp:16:31: error: two consecutive '[' shall only introduce an attribute before '[' token
       dp[i][s]=max(dp[i][s],dp[[a[i][j].first][s^(1<<col[i])]+a[i][j].second);
                               ^
0_0_30291913_28805.cpp:21:13: error: 'ret' was not declared in this scope
      return ret;
             ^
0_0_30291913_28805.cpp: In function 'int main()':
0_0_30291913_28805.cpp:29:15: error: expected unqualified-id before ';' token
     int x,y,z,;
               ^
0_0_30291913_28805.cpp:31:29: error: the value of 'y' is not usable in a constant expression
            a[x].push_back(M(y,z));
                             ^
0_0_30291913_28805.cpp:2:26: note: in definition of macro 'M'
 #define M(a,b) make_pair<a,b>
                          ^
0_0_30291913_28805.cpp:29:11: note: 'int y' is not const
     int x,y,z,;
           ^
0_0_30291913_28805.cpp:31:31: error: the value of 'z' is not usable in a constant expression
            a[x].push_back(M(y,z));
                               ^
0_0_30291913_28805.cpp:2:28: note: in definition of macro 'M'
 #define M(a,b) make_pair<a,b>
                            ^
0_0_30291913_28805.cpp:29:13: note: 'int z' is not const
     int x,y,z,;
             ^
0_0_30291913_28805.cpp:31:33: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<unresolved overloaded function type>)'
            a[x].push_back(M(y,z));
                                 ^
0_0_30291913_28805.cpp:31:33: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30291913_28805.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const value_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
0_0_30291913_28805.cpp:32:22: error: the value of 'x' is not usable in a constant expression
     a[y].push_back(M(x,z));
                      ^
0_0_30291913_28805.cpp:2:26: note: in definition of macro 'M'
 #define M(a,b) make_pair<a,b>
                          ^
0_0_30291913_28805.cpp:29:9: note: 'int x' is not const
     int x,y,z,;
         ^
0_0_30291913_28805.cpp:32:24: error: the value of 'z' is not usable in a constant expression
     a[y].push_back(M(x,z));
                        ^
0_0_30291913_28805.cpp:2:28: note: in definition of macro 'M'
 #define M(a,b) make_pair<a,b>
                            ^
0_0_30291913_28805.cpp:29:13: note: 'int z' is not const
     int x,y,z,;
             ^
0_0_30291913_28805.cpp:32:26: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<unresolved overloaded function type>)'
     a[y].push_back(M(x,z));
                          ^
0_0_30291913_28805.cpp:32:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30291913_28805.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const value_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'


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-30 08:14:34, Gzip enabled