QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#350223#7181. Graph CutsGuanYunchangCompile Error//C++232.5kb2024-03-10 15:37:172024-03-10 15:37:18

Details

answer.code: In function ‘int main()’:
answer.code:61:27: error: ‘sqrt’ was not declared in this scope; did you mean ‘st’?
   61 |     st = static_cast<int>(sqrt(n)) + 1;
      |                           ^~~~
      |                           st
answer.code:60:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   60 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:64:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   64 |         scanf("%d%d", &u, &v);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code:94:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |     scanf("%d", &q);
      |     ~~~~~^~~~~~~~~~
answer.code:97:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   97 |         scanf("%s", op);
      |         ~~~~~^~~~~~~~~~
answer.code:100:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  100 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~