QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#335540#2921. Land EqualityMaMengQiCompile Error//C++201.2kb2024-02-23 15:52:462024-02-23 15:52:46

Details

answer.code: In function ‘int main()’:
answer.code:31:12: error: expected ‘(’ before ‘freeones’
   31 |         if freeones>0{
      |            ^~~~~~~~
      |            (
answer.code:34:10: error: expected ‘}’ before ‘else’
   34 |         }else{
      |          ^~~~
answer.code:30:41: note: to match this ‘{’
   30 |     if((columns==1||rows==1)&&zeroes==1){
      |                                         ^
answer.code:39:6: error: ‘else’ without a previous ‘if’
   39 |     }else if(zeroes==0){
      |      ^~~~
answer.code:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |     scanf("%d",&rows);
      |     ~~~~~^~~~~~~~~~~~
answer.code:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%d",&columns);
      |     ~~~~~^~~~~~~~~~~~~~~
answer.code:16:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |             scanf("%d",&curr_num);
      |             ~~~~~^~~~~~~~~~~~~~~~