0_0_36361784_5914.cpp:79:116: error: 'get' function uses 'auto' type specifier without trailing return type
template <class Op, class E, class F, class... Args> auto get(int a, int b, Op op, E e, F f, const Args &... args) {
^
0_0_36361784_5914.cpp:79:116: note: deduced return type only available with -std=c++1y or -std=gnu++1y
In file included from 0_0_36361784_5914.cpp:1:0:
0_0_36361784_5914.cpp: In function 'void hdu5306::unittest()':
0_0_36361784_5914.cpp:167:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opMax, &eMax, &Node::getMax) == 5);
^
0_0_36361784_5914.cpp:168:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opSum, &eSum, &Node::getSum) == 15);
^
0_0_36361784_5914.cpp:170:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opMax, &eMax, &Node::getMax) == 3);
^
0_0_36361784_5914.cpp:171:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opSum, &eSum, &Node::getSum) == 12);
^
0_0_36361784_5914.cpp: In function 'void hdu5306::solve()':
0_0_36361784_5914.cpp:195:75: error: invalid use of 'auto'
const long long res = seg.get(l, r, &opMax, &eMax, &Node::getMax);
^
0_0_36361784_5914.cpp:199:75: error: invalid use of 'auto'
const long long res = seg.get(l, r, &opSum, &eSum, &Node::getSum);
^
In file included from 0_0_36361784_5914.cpp:1:0:
0_0_36361784_5914.cpp: In function 'void yukicoder880::unittest()':
0_0_36361784_5914.cpp:292:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opMax, &eMax, &Node::getMax) == 8);
^
0_0_36361784_5914.cpp:293:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opSum, &eSum, &Node::getSum) == 25);
^
0_0_36361784_5914.cpp:295:54: error: invalid use of 'auto'
assert(seg.get(0, 5, &opMax, &eMax, &Node::getMax) == 6);
^
0_0_36361784_5914.cpp:296:54: error: invalid use of 'auto'
assert(seg.get(1, 4, &opSum, &eSum, &Node::getSum) == 9);
^
0_0_36361784_5914.cpp:298:54: error: invalid use of 'auto'
assert(seg.get(0, 4, &opMax, &eMax, &Node::getMax) == 10);
^
0_0_36361784_5914.cpp:299:54: error: invalid use of 'auto'
assert(seg.get(2, 5, &opSum, &eSum, &Node::getSum) == 30);
^
0_0_36361784_5914.cpp:301:54: error: invalid use of 'auto'
assert(seg.get(1, 3, &opMax, &eMax, &Node::getMax) == 10);
^
0_0_36361784_5914.cpp:302:54: error: invalid use of 'auto'
assert(seg.get(3, 5, &opSum, &eSum, &Node::getSum) == 11);
^
0_0_36361784_5914.cpp: In function 'void yukicoder880::solve()':
0_0_36361784_5914.cpp:368:75: error: invalid use of 'auto'
const long long res = seg.get(l, r, &opMax, &eMax, &Node::getMax);
^
0_0_36361784_5914.cpp:372:75: error: invalid use of 'auto'
const long long res = seg.get(l, r, &opSum, &eSum, &Node::getSum);
^
|