QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#35141#4272. Phone PlansSuffixTreeCompile Error//C++172.1kb2022-06-14 07:20:322022-06-14 07:20:34

详细

answer.code: In function ‘int main()’:
answer.code:42:27: error: ‘INT_MAX’ was not declared in this scope
   42 |     ll res=n,p=m2;int ans=INT_MAX;
      |                           ^~~~~~~
answer.code:6:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
    5 | #include<map>
  +++ |+#include <climits>
    6 | #include<vector>
answer.code:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |     int n;ll k; scanf("%d%d%d%lld",&n,&m1,&m2,&k);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:25:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   25 |     for(int i=1;i<=m1;i++) scanf("%d%d%d",&r1[i].x,&r1[i].y,&r1[i].w);
      |                            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:26:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |     for(int i=1;i<=m2;i++) scanf("%d%d%d",&r2[i].x,&r2[i].y,&r2[i].w);
      |                            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~