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_16202463_7120.cpp: In function 'int main()':
0_0_16202463_7120.cpp:60:26: error: no matching function for call to 'std::vector<T>::push_back(int)'
             a[r].pb((l,0));
                          ^
0_0_16202463_7120.cpp:60: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 0_0_16202463_7120.cpp:6:
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 = T; _Alloc = std::allocator<T>; std::vector<_Tp, _Alloc>::value_type = T]
       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 'int' to 'const value_type& {aka const T&}'
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 = T; _Alloc = std::allocator<T>; std::vector<_Tp, _Alloc>::value_type = T]
       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 'int' to 'std::vector<T>::value_type&& {aka T&&}'
0_0_16202463_7120.cpp:64:25: error: 'mm' was not declared in this scope
             scanf("%d",&mm);
                         ^
0_0_16202463_7120.cpp:66:28: error: 'now' was not declared in this scope
                 scanf("%d",now);
                            ^
0_0_16202463_7120.cpp:69:29: error: no matching function for call to 'std::vector<T>::push_back(int&, int)'
             a[N].pb(last,i+1);
                             ^
0_0_16202463_7120.cpp:69:29: 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 0_0_16202463_7120.cpp:6:
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 = T; _Alloc = std::allocator<T>; std::vector<_Tp, _Alloc>::value_type = T]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   candidate expects 1 argument, 2 provided
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 = T; _Alloc = std::allocator<T>; std::vector<_Tp, _Alloc>::value_type = T]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   candidate expects 1 argument, 2 provided
0_0_16202463_7120.cpp:75:17: error: expected ',' or ';' before 'if'
                 if(now.id==0){
                 ^
0_0_16202463_7120.cpp:78:17: error: 'else' without a previous 'if'
                 else {
                 ^
0_0_16202463_7120.cpp:79:25: error: 'id' was not declared in this scope
                     ans[id-1]+=get(i)-get(left);
                         ^
0_0_16202463_7120.cpp:79:47: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
                     ans[id-1]+=get(i)-get(left);
                                               ^
0_0_16202463_7120.cpp:35:5: note: initializing argument 1 of 'int get(int)'
 int get(int x) {
     ^


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-17 00:36:41, Gzip enabled