QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#570007 | #5148. Tree Distance | aaaaa | Compile Error | / | / | C++20 | 2.4kb | 2024-09-17 13:11:16 | 2024-09-17 13:11:23 |
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:96:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 96 | scanf("%d",&n); | ~^ ~~ | | | | | long long int* | int* | %lld answer.code:98:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 98 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* long long int* | %lld answer.code:98:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] 98 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* long long int* | %lld answer.code:98:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] 98 | scanf("%d%d%d",&a,&b,&c); | ~^ ~~ | | | | int* long long int* | %lld answer.code:113:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 113 | scanf("%d",&q); | ~^ ~~ | | | | | long long int* | int* | %lld answer.code:115:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 115 | scanf("%d%d",&a,&b); | ~^ ~~ | | | | int* long long int* | %lld answer.code:115:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] 115 | scanf("%d%d",&a,&b); | ~^ ~~ | | | | int* long long int* | %lld answer.code:133:17: error: ‘prllf’ was not declared in this scope 133 | prllf("%lld\n",ans[i]); | ^~~~~ answer.code:96:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 96 | scanf("%d",&n); | ~~~~~^~~~~~~~~ answer.code:98:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 98 | scanf("%d%d%d",&a,&b,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~ answer.code:113:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 113 | scanf("%d",&q); | ~~~~~^~~~~~~~~ answer.code:115:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 115 | scanf("%d%d",&a,&b); | ~~~~~^~~~~~~~~~~~~~