QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#391708 | #3788. Funny Car Racing | ucup-team1383 | Compile Error | / | / | C++98 | 1.6kb | 2024-04-16 18:20:44 | 2024-04-16 18:20:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve(long long int, long long int, long long int, long long int)’: answer.code:29:40: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 29 | s[u].push_back({{v, a}, {b, t}}); | ^ answer.code:29:39: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 29 | s[u].push_back({{v, a}, {b, t}}); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ answer.code:29:39: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] answer.code:29:39: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] answer.code:34:16: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 34 | q.push({0, S, 0}); | ^ answer.code:34:15: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 34 | q.push({0, S, 0}); | ~~~~~~^~~~~~~~~~~ answer.code:35:28: error: ‘>>’ should be ‘> >’ within a nested template argument list 35 | vector <vector <int>> dist(n + 1, vector <int>(n + 1, 0x3f3f3f3f3f3f3f3f)); | ^~ | > > answer.code:48:27: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 48 | for (auto [i, j] : s[now.pos]) | ^ answer.code:48:27: error: ISO C++ forbids declaration of ‘structured binding’ with no type [-fpermissive] 48 | for (auto [i, j] : s[now.pos]) | ^~~~~~ answer.code:48:27: error: structured binding declaration cannot be C++98 ‘auto’ answer.code:48:27: error: structured binding declaration cannot have type ‘int’ answer.code:48:27: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ answer.code:48:36: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 48 | for (auto [i, j] : s[now.pos]) | ^ answer.code:48:45: error: forming reference to reference type ‘std::vector<std::pair<std::pair<long long int, long long int>, std::pair<long long int, long long int> > >&’ 48 | for (auto [i, j] : s[now.pos]) | ^ answer.code:58:48: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 58 | q.push({dist[i.first][now.pos], i.first, now.pos}); | ^ answer.code:58:47: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 58 | q.push({dist[i.first][now.pos], i.first, now.pos}); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:58:47: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘const std::priority_queue<node>::value_type&’ {aka ‘const node&’} In file included from /usr/include/c++/13/queue:66, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157, from answer.code:1: /usr/include/c++/13/bits/stl_queue.h:738:30: note: initializing argument 1 of ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]’ 738 | push(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ answer.code:67:48: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 67 | q.push({xx, i.first, now.pos}); | ^ answer.code:67:47: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 67 | q.push({xx, i.first, now.pos}); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ answer.code:67:47: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘const std::priority_queue<node>::value_type&’ {aka ‘const node&’} /usr/include/c++/13/bits/stl_queue.h:738:30: note: initializing argument 1 of ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]’ 738 | push(const value_type& __x) | ~~~~~~~~~~~~~~~~~~...