QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#68459#4152. 工作安排 GuanYunchangCompile Error//C++2.2kb2022-12-16 16:56:322022-12-16 16:56:34

详细

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>’?