QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#728534#9574. Stripsucup-team1782#Compile Error//C++141.3kb2024-11-09 15:23:172024-11-09 15:23:17

详细

answer.code: In function ‘bool work(int, int, int, int)’:
answer.code:20:63: error: expected ‘;’ before ‘}’ token
   20 |                 if(p<a[l]){dp[i]=max(a[i],k),pre[i]=0;continue}
      |                                                               ^
      |                                                               ;
answer.code: In function ‘int main()’:
answer.code:38:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   38 |         scanf("%d",&T);
      |         ~~~~~^~~~~~~~~
answer.code:42:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   42 |                 scanf("%d%d%d%d",&n,&m,&k,&w);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:43:44: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   43 |                 for(int i=1;i<=n;i++) scanf("%d",&a[i]);
      |                                       ~~~~~^~~~~~~~~~~~
answer.code:44:44: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   44 |                 for(int i=1;i<=m;i++) scanf("%d",&b[i]);
      |                                       ~~~~~^~~~~~~~~~~~