QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#59788#2832. Graph TheoryGuanYunchangCompile Error//C++171.4kb2022-11-01 14:31:222022-11-01 14:31:24

Details

answer.code: In function ‘void solve()’:
answer.code:26:52: error: expected ‘;’ before ‘if’
   26 |                         int a,b;scanf("%d%d",&a,&b)
      |                                                    ^
      |                                                    ;
   27 |                         if(a<b)swap(a,b);
      |                         ~~                          
answer.code:26:38: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |                         int a,b;scanf("%d%d",&a,&b)
      |                                 ~~~~~^~~~~~~~~~~~~~