QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#653432#7944. Max Minus MinGuanYunchangCompile Error//C++202.1kb2024-10-18 20:05:052024-10-18 20:05:06

Details

answer.code: In function ‘int main()’:
answer.code:19:26: error: ‘INT_MIN’ was not declared in this scope
   19 |         int currentMax = INT_MIN;
      |                          ^~~~~~~
answer.code:3:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
    2 | #include <limits>
  +++ |+#include <climits>
    3 | using namespace std;
answer.code:20:26: error: ‘INT_MAX’ was not declared in this scope
   20 |         int currentMin = INT_MAX;
      |                          ^~~~~~~
answer.code:20:26: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?