QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#682344#9528. New Energy Vehicleucup-team4881#Compile Error//C++141.8kb2024-10-27 15:05:222024-10-27 15:05:23

Details

answer.code: In function ‘int main()’:
answer.code:9:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
    9 |   for (auto& [w, l, r]: c) cin >> w >> l >> r;
      |              ^
answer.code:12:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   12 |   for (auto const& [w, l, r]: c)
      |                    ^
answer.code:16:17: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   16 |     auto const& [w, c](q.top());
      |                 ^
answer.code: In lambda function:
answer.code:21:17: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   21 |     auto const& [fir, sec](*pre.lower_bound(x));
      |                 ^
answer.code:22:17: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   22 |     auto const& [sum, slp](sec);
      |                 ^
answer.code: In function ‘int main()’:
answer.code:31:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   31 |   for (auto const& [w, l, r]: c) {
      |                    ^
answer.code:40:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   40 |   for (auto const& [w, l, r]: c) {
      |                    ^
answer.code: At global scope:
answer.code:51:1: error: ‘qwqwqwq’ does not name a type
   51 | qwqwqwq
      | ^~~~~~~