QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#68459 | #4152. 工作安排 | GuanYunchang | Compile Error | / | / | C++ | 2.2kb | 2022-12-16 16:56:32 | 2022-12-16 16:56:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:2:1: error: ‘include’ does not name a type 2 | include<cstdio> | ^~~~~~~ answer.code: In function ‘int spfa(int, int)’: answer.code:29:5: error: ‘memset’ was not declared in this scope 29 | memset(pre,-1,sizeof(pre)); | ^~~~~~ answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? +++ |+#include <cstring> 1 | answer.code: In function ‘void doit()’: answer.code:57:5: error: ‘ll’ was not declared in this scope 57 | ll ans=0; | ^~ answer.code:62:17: error: ‘min’ was not declared in this scope 62 | sum=min(sum,way[pre[i]].v); | ^~~ answer.code:63:9: error: ‘ans’ was not declared in this scope 63 | ans+=(ll)sum*dis[t]; | ^~~ answer.code:68:19: error: ‘ans’ was not declared in this scope 68 | printf("%lld",ans); | ^~~ answer.code:68:5: error: ‘printf’ was not declared in this scope 68 | printf("%lld",ans); | ^~~~~~ answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | answer.code: In function ‘int main()’: answer.code:89:5: error: ‘scanf’ was not declared in this scope 89 | scanf("%d%d",&n,&m); | ^~~~~ answer.code:90:5: error: ‘memset’ was not declared in this scope 90 | memset(st,-1,sizeof(st)); | ^~~~~~ answer.code:90:5: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?