QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#362271#8507. Clever Cell Choicesucup-team293#Compile Error//C++143.7kb2024-03-23 14:50:012024-03-23 14:50:02

Details

answer.code: In function ‘bool bfs_hk()’:
answer.code:31:10: error: ‘INT_MAX’ was not declared in this scope
   31 |     dm = INT_MAX;
      |          ^~~~~~~
answer.code:6:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
    5 | #include <queue>
  +++ |+#include <climits>
    6 | using namespace std;
answer.code: In function ‘int main()’:
answer.code:109:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  109 |         scanf("%s", s + 1);
      |         ~~~~~^~~~~~~~~~~~~