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_33989384_32036.cpp:7:5: error: missing terminating ' character
     const static ll INF = 0x3f3f'3f3f'3f3f'3f3f;
     ^
0_0_33989384_32036.cpp:7:27: error: expected ';' at end of member declaration
     const static ll INF = 0x3f3f'3f3f'3f3f'3f3f;
                           ^
0_0_33989384_32036.cpp:7:33: error: expected unqualified-id before '\x33663366'
     const static ll INF = 0x3f3f'3f3f'3f3f'3f3f;
                                 ^
0_0_33989384_32036.cpp: In member function 'void Seg::init()':
0_0_33989384_32036.cpp:16:16: error: 'max' was not declared in this scope
         memset(max, 0, sizeof(max));
                ^
0_0_33989384_32036.cpp:16:16: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp:17:16: error: 'smax' was not declared in this scope
         memset(smax, 0, sizeof(smax));
                ^
0_0_33989384_32036.cpp:18:16: error: 'cnt' was not declared in this scope
         memset(cnt, 0, sizeof(cnt));
                ^
0_0_33989384_32036.cpp: In member function 'void Seg::update(int, ll)':
0_0_33989384_32036.cpp:24:22: error: 'max' was not declared in this scope
         if (value >= max[sit]) return;
                      ^
0_0_33989384_32036.cpp:24:22: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp:25:22: error: 'max' was not declared in this scope
         seg[sit] -= (max[sit] - value) * cnt[sit];
                      ^
0_0_33989384_32036.cpp:25:22: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp:25:42: error: 'cnt' was not declared in this scope
         seg[sit] -= (max[sit] - value) * cnt[sit];
                                          ^
0_0_33989384_32036.cpp: In member function 'void Seg::pull(int)':
0_0_33989384_32036.cpp:41:13: error: 'max' was not declared in this scope
         if (max[lch] < max[rch]){
             ^
0_0_33989384_32036.cpp:41:13: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp:44:9: error: 'max' was not declared in this scope
         max[sit] = max[lch];
         ^
0_0_33989384_32036.cpp:44:9: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp:45:9: error: 'cnt' was not declared in this scope
         cnt[sit] = cnt[lch] + (max[lch] == max[rch] ? cnt[rch] : 0);
         ^
0_0_33989384_32036.cpp:46:9: error: 'smax' was not declared in this scope
         smax[sit] = max[lch] == max[rch] ? std::max(smax[lch], smax[rch]) : std::max(smax[lch], max[rch]);
         ^
0_0_33989384_32036.cpp: In member function 'void Seg::add(int, int, int, int, int, ll)':
0_0_33989384_32036.cpp:54:43: error: 'smax' was not declared in this scope
         if (ql <= l && qr >= r && value > smax[sit]){
                                           ^
0_0_33989384_32036.cpp: In member function 'll Seg::query2(int, int, int, int, int)':
0_0_33989384_32036.cpp:90:20: error: 'max' was not declared in this scope
             return max[sit];
                    ^
0_0_33989384_32036.cpp:90:20: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33989384_32036.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33989384_32036.cpp: In function 'void solve()':
0_0_33989384_32036.cpp:125:13: error: 'struct Seg' has no member named 'max'
         seg.max[sit] = seg.seg[sit] = a[i];
             ^
0_0_33989384_32036.cpp:126:13: error: 'struct Seg' has no member named 'cnt'
         seg.cnt[sit] = 1;
             ^
0_0_33989384_32036.cpp:127:13: error: 'struct Seg' has no member named 'smax'
         seg.smax[sit] = 0;
             ^


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