QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#151281#5553. Alternative ArchitectureMaMengQiCompile Error//C++17867b2023-08-26 16:20:312023-08-26 16:20:34

Details

answer.code: In function ‘int main()’:
answer.code:28:21: error: ‘sqrt’ was not declared in this scope
   28 |             int t = sqrt(j);
      |                     ^~~~
answer.code:19:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |     scanf("%d%d", &N, &M);
      |     ~~~~~^~~~~~~~~~~~~~~~