QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#221120#6736. Alice and Bobucup-team241#Compile Error//C++115.4kb2023-10-21 09:33:452023-10-21 09:33:45

详细

answer.code: In function ‘bool chk(obj, obj)’:
answer.code:153:5: error: expected primary-expression before ‘}’ token
  153 |     }
      |     ^
answer.code:152:15: error: expected ‘;’ before ‘}’ token
  152 |         return
      |               ^
      |               ;
  153 |     }
      |     ~          
answer.code: At global scope:
answer.code:155:5: error: redefinition of ‘int n’
  155 | int n,r,d;
      |     ^
answer.code:6:5: note: ‘int n’ previously declared here
    6 | int n,r,d;
      |     ^
answer.code:155:7: error: redefinition of ‘int r’
  155 | int n,r,d;
      |       ^
answer.code:6:7: note: ‘int r’ previously declared here
    6 | int n,r,d;
      |       ^
answer.code:155:9: error: redefinition of ‘int d’
  155 | int n,r,d;
      |         ^
answer.code:6:9: note: ‘int d’ previously declared here
    6 | int n,r,d;
      |         ^