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_33780790_24225.cpp:13:8: error: 'P' was not declared in this scope
 vector<P> v[53];
        ^
0_0_33780790_24225.cpp:13:9: error: template argument 1 is invalid
 vector<P> v[53];
         ^
0_0_33780790_24225.cpp:13:9: error: template argument 2 is invalid
0_0_33780790_24225.cpp:13:16: error: invalid type in declaration before ';' token
 vector<P> v[53];
                ^
0_0_33780790_24225.cpp: In function 'void dfs(long long int, long long int, long long int, long long int, int, int)':
0_0_33780790_24225.cpp:23:21: error: 'begin' was not declared in this scope
  for (P nxt : v[kind]) {
                     ^
0_0_33780790_24225.cpp:23:21: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_33780790_24225.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:   'std::begin'
     begin(initializer_list<_Tp> __ils) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:   'std::begin'
0_0_33780790_24225.cpp:23:21: error: 'end' was not declared in this scope
  for (P nxt : v[kind]) {
                     ^
0_0_33780790_24225.cpp:23:21: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_33780790_24225.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:   'std::end'
     end(initializer_list<_Tp> __ils) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:   'std::end'
0_0_33780790_24225.cpp: In function 'int main()':
0_0_33780790_24225.cpp:41:16: error: request for member 'push_back' in 'v[mp.std::map<_Key, _Tp, _Compare, _Alloc>::operator[]<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >((*(const key_type*)(& kind)))]', which is of non-class type 'int'
    v[mp[kind]].push_back(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-12-04 11:15:37, Gzip enabled