QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#350125#7184. Transport PlusesZhangYiDeCompile Error//C++232.8kb2024-03-10 14:34:072024-03-10 14:34:08

Details

answer.code: In function ‘int main()’:
answer.code:50:5: error: ‘memset’ was not declared in this scope
   50 |     memset(dis, 0x3f, sizeof dis);
      |     ^~~~~~
answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include <queue>
  +++ |+#include <cstring>
    3 | #include <vector>
answer.code:70:40: error: ‘sqrt’ was not declared in this scope
   70 |         printf("%.10lf\n1\n0 %d %d\n", sqrt((xh - xe) * (xh - xe) + (yh - ye) * (yh - ye)), xe, ye);
      |                                        ^~~~
answer.code:78:10: error: ‘reverse’ is not a member of ‘std’
   78 |     std::reverse(path.begin(), path.end());
      |          ^~~~~~~
answer.code:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |     scanf("%d%d%d%d%d%d", &n, &t, &xh, &yh, &xe, &ye);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   14 |         scanf("%d%d", &xp[i], &yp[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~