Submission #29303
ソースコード
ステータス
項目 |
データ |
問題 |
0856 - StarrySkyのverify |
ユーザー名 |
beet
|
投稿日時 |
2017-12-01 18:30:40 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
2183 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In instantiation of ‘void SegmentTree<T, E>::update(int, int, E, int, int, int) [with T = long long int; E = long long int]’:
./Main.cpp:52:11: required from ‘void SegmentTree<T, E>::update(int, int, E) [with T = long long int; E = long long int]’
./Main.cpp:82:22: required from here
./Main.cpp:48:11: error: no match for call to ‘(SegmentTree<long long int, long long int>::P {aka std::function<long long int(long long int, int)>}) (__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type&)’
dat[k]=f(g(dat[k*2+1],p(laz[k*2+1]),min(r,b)-max(l,a)),
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/functional:58:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:71,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/std_function.h:701:5: note: candidate: _Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = long long int; _ArgTypes = {long long int, int}]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/std_function.h:701:5: note: candidate expects 2 arguments, 1 provided
./Main.cpp:48:11: error: no match for call to ‘(SegmentTree<long long int, long long int>::P {aka std::function<long long int(long long int, int)>}) (__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type&)’
dat[k]=f(g(dat[k*2+1],p(laz[k*2+1]),min(r,b)-max(l,a)),
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/functional:58:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:71,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/std_function.h:701:5: note: candidate: _Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = long long int; _ArgTypes = {long long int, int}]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/gcc-7.1.0/include/c++/7.1.0/bits/std_function.h:701:5: note: candidate expects 2 arguments, 1 provided
セット
テストケース