QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#545207#9221. Missing Boundariesucup-team4800Compile Error//C++142.1kb2024-09-03 01:24:132024-09-03 01:24:13

Details

answer.code: In function ‘int main()’:
answer.code:10:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   10 |         for (auto &[a, b] : ranges) {
      |                    ^
answer.code:14:14: error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
   14 |         std::sort(ranges, ranges + n,
      |              ^~~~
      |              qsort
answer.code:32:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   32 |         for (const auto &[a, b] : ranges) {
      |                          ^