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_24384081_22239.cpp: In member function 'void SegmentTree2D::build(int, int, int)':
0_0_24384081_22239.cpp:51:3: error: 'Tree' was not declared in this scope
   Tree[index].l = l;
   ^
0_0_24384081_22239.cpp:53:29: error: 'n' was not declared in this scope
   Tree[index].Max.build(1,1,n);
                             ^
0_0_24384081_22239.cpp: In member function 'void SegmentTree2D::modify(int, int, int, int)':
0_0_24384081_22239.cpp:62:7: error: 'Tree' was not declared in this scope
   if (Tree[index].l == Tree[index].r == x) {
       ^
0_0_24384081_22239.cpp:67:10: error: 'Tree' was not declared in this scope
   mid = (Tree[index].l + Tree[index].r) >> 1;
          ^
0_0_24384081_22239.cpp: In function 'int main()':
0_0_24384081_22239.cpp:78:10: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
  while (T--) {
          ^
0_0_24384081_22239.cpp:79:8: error: 'n' was not declared in this scope
   read(n);
        ^
0_0_24384081_22239.cpp:80:15: error: 'N' was not declared in this scope
   T.build(1,1,N);
               ^
0_0_24384081_22239.cpp:81:8: error: 'i' was not declared in this scope
   for (i = 1; i <= n; i++) {
        ^
0_0_24384081_22239.cpp:82:9: error: 'j' was not declared in this scope
    for (j = 1; j <= n; j++) {
         ^
0_0_24384081_22239.cpp:83:10: error: 'a' was not declared in this scope
     read(a[i][j]);
          ^
0_0_24384081_22239.cpp:87:8: error: 'q' was not declared in this scope
   read(q);
        ^
0_0_24384081_22239.cpp:89:9: error: 'x' was not declared in this scope
    read(x); read(y); read(l);
         ^
0_0_24384081_22239.cpp:89:18: error: 'y' was not declared in this scope
    read(x); read(y); read(l);
                  ^
0_0_24384081_22239.cpp:89:27: error: 'l' was not declared in this scope
    read(x); read(y); read(l);
                           ^
0_0_24384081_22239.cpp:90:4: error: 'xa' was not declared in this scope
    xa = min(1,x-l/2);
    ^
0_0_24384081_22239.cpp:91:4: error: 'xb' was not declared in this scope
    xb = max(1,x+l/2);
    ^
0_0_24384081_22239.cpp:92:4: error: 'ya' was not declared in this scope
    ya = min(1,y-l/2);
    ^
0_0_24384081_22239.cpp:93:4: error: 'yb' was not declared in this scope
    yb = max(1,y+l/2);
    ^
0_0_24384081_22239.cpp:94:4: error: 'Max' was not declared in this scope
    Max = T.query_max(1,xa,xb,ya,yb);
    ^
0_0_24384081_22239.cpp:94:12: error: 'struct SegmentTree2D' has no member named 'query_max'
    Max = T.query_max(1,xa,xb,ya,yb);
            ^
0_0_24384081_22239.cpp:95:4: error: 'Min' was not declared in this scope
    Min = T.query_min(1,xa,xb,ya,yb);
    ^
0_0_24384081_22239.cpp:95:12: error: 'struct SegmentTree2D' has no member named 'query_min'
    Min = T.query_min(1,xa,xb,ya,yb);
            ^
0_0_24384081_22239.cpp:96:4: error: 'tmp' was not declared in this scope
    tmp = (Max + Min) / 2;
    ^
0_0_24384081_22239.cpp: In instantiation of 'void read(T&) [with T = SegmentTree2D]':
0_0_24384081_22239.cpp:77:8:   required from here
0_0_24384081_22239.cpp:7:15: error: no match for 'operator=' (operand types are 'SegmentTree2D' and 'int')
  int f = 1; x = 0;
               ^
0_0_24384081_22239.cpp:7:15: note: candidates are:
0_0_24384081_22239.cpp:44:8: note: SegmentTree2D& SegmentTree2D::operator=(const SegmentTree2D&)
 struct SegmentTree2D {
        ^
0_0_24384081_22239.cpp:44:8: note:   no known conversion for argument 1 from 'int' to 'const SegmentTree2D&'
0_0_24384081_22239.cpp:44:8: note: SegmentTree2D& SegmentTree2D::operator=(SegmentTree2D&&)
0_0_24384081_22239.cpp:44:8: note:   no known conversion for argument 1 from 'int' to 'SegmentTree2D&&'
0_0_24384081_22239.cpp:10:54: error: no match for 'operator<<' (operand types are 'SegmentTree2D' and 'int')
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - '0';
                                                      ^
0_0_24384081_22239.cpp:10:54: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52: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_24384081_22239.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2772:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2772:5: note:   template argument deduction/substitution failed:
0_0_24384081_22239.cpp:10:54: note:   'SegmentTree2D' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - '0';
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 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_24384081_22239.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:471:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:471:5: note:   template argument deduction/substitution failed:
0_0_24384081_22239.cpp:10:54: note:   'SegmentTree2D' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - '0';
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 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_24384081_22239.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:476:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:476:5: note:   template argument deduction/substitution failed:
0_0_24384081_22239.cpp:10:54: note:   'SegmentTree2D' is not derived from 'std::basic_ostream<_CharT, _Traits>'
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - '0';
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 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_24384081_22239.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:482:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
     operator<<(basic_ostream<char, _Traits>& __out, char __c)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:482:5: note:   template argument deduction/substitution failed:
0_0_24384081_22239.cpp:10:54: note:   'SegmentTree2D' is not derived from 'std::basic_ostream<char, _Traits>'
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - '0';
                                                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 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_24384081_22239.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:488:5: note: template<class


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-26 19:32:11, Gzip enabled