QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#356160#8057. Best Carry Player 4MaMengQiCompile Error//C++142.2kb2024-03-17 16:22:572024-03-17 16:22:58

Details

answer.code: In function ‘void solve()’:
answer.code:67:11: error: ‘Case’ was not declared in this scope
   67 |         ++Case;
      |           ^~~~
answer.code: In function ‘int main()’:
answer.code:106:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  106 |         int T;scanf("%d",&T);
      |               ~~~~~^~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:68:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   68 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:69:38: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   69 |         for(rg int i=0;i<n;i+=1)scanf("%lld",A+i);
      |                                 ~~~~~^~~~~~~~~~~~
answer.code:70:38: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   70 |         for(rg int i=0;i<n;i+=1)scanf("%lld",B+i);
      |                                 ~~~~~^~~~~~~~~~~~