记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:2: error: expected ';' before 'scanf'
  scanf("%d",&num);
  ^~~~~
/in/foo.c:8:11: error: lvalue required as left operand of assignment
  if(num%10=num/100)
           ^
/in/foo.c:12:42: error: stray '\357' in program
    printf("请输入的数%d是回文数",num)
                                          ^
/in/foo.c:12:43: error: stray '\274' in program
    printf("请输入的数%d是回文数",num)
                                           ^
/in/foo.c:12:44: error: stray '\214' in program
    printf("请输入的数%d是回文数",num)
                                            ^
/in/foo.c:12:45: error: expected ')' before 'num'
    printf("请输入的数%d是回文数",num)
                                             ^~~
/in/foo.c:12:28: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("请输入的数%d是回文数",num)
                            ^
/in/foo.c:13:3: error: expected ';' before '}' token
   }
   ^
/in/foo.c:19:1: error: expected declaration or statement at end of input
 }
 ^

信息

递交者
类型
自测
题目
A4-3 回文数专题:回文数判断
语言
C
递交时间
2024-11-05 08:05:45
评测时间
2024-11-05 08:05:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes