QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#350127#7184. Transport PlusesHuangHanShengCompile Error//C++232.8kb2024-03-10 14:34:302024-03-10 14:34:30

詳細信息

answer.code: In function ‘int main()’:
answer.code:71:40: error: ‘sqrt’ was not declared in this scope
   71 |         printf("%.10lf\n1\n0 %d %d\n", sqrt((xh - xe) * (xh - xe) + (yh - ye) * (yh - ye)), xe, ye);
      |                                        ^~~~
answer.code:79:10: error: ‘reverse’ is not a member of ‘std’
   79 |     std::reverse(path.begin(), path.end());
      |          ^~~~~~~
answer.code:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |     scanf("%d%d%d%d%d%d", &n, &t, &xh, &yh, &xe, &ye);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:15:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |         scanf("%d%d", &xp[i], &yp[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~