QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#540712 | #8937. Stage: Agausscrab | ucup-team4851# | Compile Error | / | / | C++14 | 1.4kb | 2024-08-31 17:44:05 | 2024-08-31 17:44:06 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:43:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 43 | sort(e+1,e+n+1); | ^~~~ | short answer.code:49:15: error: ‘strlen’ was not declared in this scope 49 | int m=strlen(e[i].s); | ^~~~~~ answer.code:6:1: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 5 | #include<map> +++ |+#include <cstring> 6 | using namespace std; answer.code:54:15: error: ‘strlen’ was not declared in this scope 54 | int m=strlen(e[i].s); | ^~~~~~ answer.code:54:15: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code:18:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | #define sci(a) scanf("%d",&(a)) | ~~~~~^~~~~~~~~~~ answer.code:38:5: note: in expansion of macro ‘sci’ 38 | sci(n); | ^~~ answer.code:40:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | scanf("%s%d",e[i].s,&e[i].v); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~