记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:5: error: unknown type name 'fluot'
     fluot x,y;
     ^~~~~
/in/foo.c:6:5: error: expected '(' before 'x'
  if x<25;
     ^
/in/foo.c:6:5: warning: statement with no effect [-Wunused-value]
/in/foo.c:8:6: error: expected '(' before 'x'
   if x<10;
      ^
/in/foo.c:8:6: warning: statement with no effect [-Wunused-value]
/in/foo.c:10:6: error: expected '(' before 'x'
   if x<0;
      ^
/in/foo.c:10:6: warning: statement with no effect [-Wunused-value]
/in/foo.c:12:6: error: invalid suffix "x" on integer constant
    y=3x-1;
      ^~
/in/foo.c:14:4: error: 'else' without a previous 'if'
    else
    ^~~~
/in/foo.c:17:4: error: 'else' without a previous 'if'
    else
    ^~~~
/in/foo.c:18:15: error: invalid operands to binary ^ (have 'int' and 'double')
     y=(5*x+10)^(0.5);
       ~~~~~~~~^
/in/foo.c:20:2: error: 'else' without a previous 'if'
  else
  ^~~~
/in/foo.c:22:14: warning: unknown conversion type character 0xa in format [-Wformat=]
  printf("f.2%\n",y);
              ^
/in/foo.c:22:9: warning: too many arguments for format [-Wformat-extra-args]
  printf("f.2%\n",y);
         ^~~~~~~~

信息

递交者
类型
递交
比赛
2024级14点半
语言
C
递交时间
2024-12-24 14:48:18
评测时间
2024-12-24 14:48:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes