QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#184239#7108. Couleurucup-team1281#Compile Error//C++143.7kb2023-09-20 15:37:282023-09-20 15:37:28

Details

answer.code: In function ‘int update(int, int, int, int)’:
answer.code:14:48: error: missing template arguments before ‘{’ token
   14 |     tie(lson[dir], rson[dir], sum[dir]) = tuple{lson[root], rson[root], sum[root]+1};
      |                                                ^
answer.code: In function ‘void solve()’:
answer.code:59:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
   59 |         auto [l, r] = *(--segments.upper_bound({p, 1919810}));
      |              ^
answer.code:61:24: error: ‘class std::multiset<long long int>’ has no member named ‘extract’
   61 |         auto xx = left.extract(info[{l, r}]);
      |                        ^~~~~~~