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_31009687_4652.cpp:9:31: error: expected identifier before numeric constant
     vector< pair<int,int> > f(201);
                               ^
0_0_31009687_4652.cpp:9:31: error: expected ',' or '...' before numeric constant
0_0_31009687_4652.cpp: In function 'int main()':
0_0_31009687_4652.cpp:26:13: error: 'p[i].Pair::f' does not have class type
             p[i].f.clear();
             ^
0_0_31009687_4652.cpp:31:17: error: 'p[i].Pair::f' does not have class type
                 p[i].f.push_back({u,cnt});
                 ^
0_0_31009687_4652.cpp:38:34: error: no matching function for call to 'begin(std::vector<std::pair<int, int> > (Pair::*&)(int))'
                 for(auto &t:p[j].f) {
                                  ^
0_0_31009687_4652.cpp:38:34: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note: template<class _Tp> const _Tp* std::begin(const std::valarray<_Tp>&)
     begin(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   'std::vector<std::pair<int, int> > (Pair::*)(int)' is not derived from 'const std::valarray<_Tp>'
                 for(auto &t:p[j].f) {
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1196:5: note: template<class _Tp> _Tp* std::begin(std::valarray<_Tp>&)
     begin(valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1196:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   'std::vector<std::pair<int, int> > (Pair::*)(int)' is not derived from 'std::valarray<_Tp>'
                 for(auto &t:p[j].f) {
                                  ^
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++/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_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   'std::vector<std::pair<int, int> > (Pair::*)(int)' is not derived from 'std::initializer_list<_Tp>'
                 for(auto &t:p[j].f) {
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 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++/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_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   mismatched types '_Tp [_Nm]' and 'std::vector<std::pair<int, int> > (Pair::*)(int)'
                 for(auto &t:p[j].f) {
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 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++/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_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) [with _Container = std::vector<std::pair<int, int> > (Pair::*)(int)]':
0_0_31009687_4652.cpp:38:34:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: error: request for member 'begin' in '__cont', which is of non-class type 'std::vector<std::pair<int, int> > (Pair::* const)(int)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.begin()) std::begin(_Container&) [with _Container = std::vector<std::pair<int, int> > (Pair::*)(int)]':
0_0_31009687_4652.cpp:38:34:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: error: request for member 'begin' in '__cont', which is of non-class type 'std::vector<std::pair<int, int> > (Pair::*)(int)'
0_0_31009687_4652.cpp:38:34: error: no matching function for call to 'end(std::vector<std::pair<int, int> > (Pair::*&)(int))'
                 for(auto &t:p[j].f) {
                                  ^
0_0_31009687_4652.cpp:38:34: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note: template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
     end(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   'std::vector<std::pair<int, int> > (Pair::*)(int)' is not derived from 'const std::valarray<_Tp>'
                 for(auto &t:p[j].f) {
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_31009687_4652.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1216:5: note: template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
     end(valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1216:5: note:   template argument deduction/substitution failed:
0_0_31009687_4652.cpp:38:34: note:   'std::vector<std::pair<int, int> > (Pair::*)(int)' is not derived from 'std::valarray<_Tp>'
                 for(auto &t:p[j].f) {
                                  ^
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,
                 fro


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-29 20:06:21, Gzip enabled