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_36365141_475.cpp: In function 'int main()':
0_0_36365141_475.cpp:25:15: error: 'read' was not declared in this scope
  rep(T,1,read())
               ^
0_0_36365141_475.cpp:10:51: note: in definition of macro 'rep'
 #define rep(i,s,t) for(register int i=(s),i##end=(t);i<=i##end;++i)
                                                   ^
0_0_36365141_475.cpp:32:32: error: 'sumA' was not declared in this scope
         rep(j,1,n) f[1][j].pb({sumA[j],sumB[j]});
                                ^
0_0_36365141_475.cpp:32:40: error: 'sumB' was not declared in this scope
         rep(j,1,n) f[1][j].pb({sumA[j],sumB[j]});
                                        ^
0_0_36365141_475.cpp:32:48: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)'
         rep(j,1,n) f[1][j].pb({sumA[j],sumB[j]});
                                                ^
0_0_36365141_475.cpp:32:48: 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_36365141_475.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 '<brace-enclosed initializer list>' 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 '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
0_0_36365141_475.cpp:41:27: error: 'stk' was not declared in this scope
                 while(tp&&stk[tp].a<=tmp.a&&stk[tp].b<=tmp.b) tp--;
                           ^
0_0_36365141_475.cpp:42:17: error: 'stk' was not declared in this scope
                 stk[++tp]=tmp;
                 ^
0_0_36365141_475.cpp:45:36: error: 'stk' was not declared in this scope
             rep(k,1,tp) f[i][1].pb(stk[k]);
                                    ^
0_0_36365141_475.cpp:52:48: error: 'mymax' was not declared in this scope
       tmp={(it1->a)+A[i][j],mymax(it1->b,it2->b)+B[i][j]},it1++,it2++;
                                                ^
0_0_36365141_475.cpp:52:10: error: no match for 'operator=' (operand types are 'std::pair<int, int>' and '<brace-enclosed initializer list>')
       tmp={(it1->a)+A[i][j],mymax(it1->b,it2->b)+B[i][j]},it1++,it2++;
          ^
0_0_36365141_475.cpp:52:10: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64: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_36365141_475.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
       operator=(const pair& __p)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::pair<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
       operator=(pair&& __p)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::pair<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
  operator=(const pair<_U1, _U2>& __p)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note:   template argument deduction/substitution failed:
0_0_36365141_475.cpp:52:10: note:   couldn't deduce template parameter '_U1'
       tmp={(it1->a)+A[i][j],mymax(it1->b,it2->b)+B[i][j]},it1++,it2++;
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64: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_36365141_475.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
  operator=(pair<_U1, _U2>&& __p)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note:   template argument deduction/substitution failed:
0_0_36365141_475.cpp:52:10: note:   couldn't deduce template parameter '_U1'
       tmp={(it1->a)+A[i][j],mymax(it1->b,it2->b)+B[i][j]},it1++,it2++;
          ^
0_0_36365141_475.cpp:57:31: error: 'stk' was not declared in this scope
                     while(tp&&stk[tp].a<=tmp.a&&stk[tp].b<=tmp.b) tp--;
                               ^
0_0_36365141_475.cpp:58:21: error: 'stk' was not declared in this scope
                     stk[++tp]=tmp;
                     ^
0_0_36365141_475.cpp:63:31: error: 'stk' was not declared in this scope
                     while(tp&&stk[tp].a<=tmp.a&&stk[tp].b<=tmp.b) tp--;
                               ^
0_0_36365141_475.cpp:64:21: error: 'stk' was not declared in this scope
                     stk[++tp]=tmp;
                     ^
0_0_36365141_475.cpp:70:31: error: 'stk' was not declared in this scope
                     while(tp&&stk[tp].a<=tmp.a&&stk[tp].b<=tmp.b) tp--;
                               ^
0_0_36365141_475.cpp:71:21: error: 'stk' was not declared in this scope
                     stk[++tp]=tmp;
                     ^
0_0_36365141_475.cpp:74:40: error: 'stk' was not declared in this scope
                 rep(k,1,tp) f[i][j].pb(stk[k]);
                                        ^


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-03 11:13:30, Gzip enabled