QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#403801#5034. >.<mekoszcCompile Error//C++142.7kb2024-05-02 19:15:592024-05-02 19:16:00

Details

answer.code: In function ‘void upd(int&, int, int, int, int, int, int)’:
answer.code:46:17: error: break statement not within loop or switch
   46 |                 break;
      |                 ^~~~~
answer.code: In function ‘int ask(int, int, int, int)’:
answer.code:63:17: error: break statement not within loop or switch
   63 |                 break;
      |                 ^~~~~
answer.code: In function ‘int main()’:
answer.code:126:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  126 |         scanf("%d%d%d",&n,&m,&k),idx=n;
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:129:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  129 |                 scanf("%d%d%d",&u,&v,&w);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:143:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  143 |                 scanf("%d",&p);
      |                 ~~~~~^~~~~~~~~
answer.code:145:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  145 |                         scanf("%d",a+i);
      |                         ~~~~~^~~~~~~~~~