QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#350125 | #7184. Transport Pluses | ZhangYiDe | Compile Error | / | / | C++23 | 2.8kb | 2024-03-10 14:34:07 | 2024-03-10 14:34:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~