QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#180445 | #5676. Counting Pythagorean Triples | HuangHanSheng | Compile Error | / | / | C++ | 1.1kb | 2023-09-15 20:49:52 | 2023-09-15 20:49:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘bool panduan(long long int)’: answer.code:12:11: error: ‘sqrt’ was not declared in this scope 12 | int u=sqrt(p); | ^~~~ answer.code: In function ‘int main()’: answer.code:52:17: error: ‘memset’ was not declared in this scope 52 | memset(a,0,sizeof(a)); | ^~~~~~ answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 1 | #include<iostream> +++ |+#include <cstring> 2 | answer.code:62:27: error: ‘sqrt’ was not declared in this scope 62 | double p; p=p/sqrt(p); | ^~~~ answer.code:72:13: error: ‘memset’ was not declared in this scope 72 | memset(a,0,sizeof(a)); | ^~~~~~ answer.code:72:13: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?