QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#179722#6416. Classical Scheduling ProblemmaxrgbyCompile Error//C++203.1kb2023-09-15 02:45:312023-09-15 02:45:31

Details

answer.code: In function ‘std::pair<bool, long long int> works(long long int, std::vector<std::pair<std::pair<long long int, long long int>, long long int> >&, long long int)’:
answer.code:22:9: error: expected ‘,’ or ‘;’ before ‘priority_queue’
   22 |         priority_queue<pair<pair<int, int>, int>, vector<pair<pair<int, int>, int>>, decltype(&cmp_first)> big(cmp_first);
      |         ^~~~~~~~~~~~~~
answer.code:30:17: error: ‘big’ was not declared in this scope; did you mean ‘std::endian::big’?
   30 |                 big.push(arr[i]);
      |                 ^~~
      |                 std::endian::big
In file included from /usr/include/c++/11/bits/align.h:35,
                 from /usr/include/c++/11/memory:72,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
                 from answer.code:3:
/usr/include/c++/11/bit:402:5: note: ‘std::endian::big’ declared here
  402 |     big    = __ORDER_BIG_ENDIAN__,
      |     ^~~