记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:15: error: invalid suffix ";" on integer constant
    7 |          flog=1;}
      |               ^~~
/in/foo.c:7:18: error: expected ';' before '}' token
    7 |          flog=1;}
      |                  ^
      |                  ;
/in/foo.c:8:24: error: lvalue required as left operand of assignment
    8 |          else if(n=2||n=3){
      |                        ^
/in/foo.c:15:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   15 |      if(flog=1){
      |         ^~~~
/in/foo.c:17:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   17 |          if(flog=0){
      |             ^~~~
/in/foo.c: At top level:
/in/foo.c:22:5: error: expected identifier or '(' before 'return'
   22 |     return 0;
      |     ^~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2025-12-06 15:13:24
评测时间
2025-12-06 15:13:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes