QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#217476#5141. Identical ParityHuangHanShengCompile Error//C++17689b2023-10-16 21:39:032023-10-16 21:39:03

詳細信息

answer.code: In function ‘int main()’:
answer.code:6:8: error: expected unqualified-id before ‘,’ token
    6 | double ,n,k,m,b,c,z,r, a;
      |        ^
answer.code:11:13: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
   11 | y=(n/2) + (n%2);
      |            ~^~
      |            | |
      |            | int
      |            double
answer.code:12:4: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
   12 | m=n%k;
      |   ~^~
      |   | |
      |   | double
      |   double
answer.code:18:7: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
   18 |   if(n%k==0) {
      |      ~^~
      |      | |
      |      | double
      |      double