记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:8: error: invalid operands to binary ^ (have 'float' and 'double')
   y=2*x^2+4.0-5.0;}
     ~~~^~~~~~~~~~
/in/foo.c:14:15: error: invalid operands to binary ^ (have 'double' and 'double')
   y=(5*x+10.0)^(0.5);}
     ~~~~~~~~~~^
/in/foo.c:17:4: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   y==x^3;}
   ~^~~
/in/foo.c:17:7: warning: statement with no effect [-Wunused-value]
   y==x^3;}
   ~~~~^~
/in/foo.c:18:16: warning: format '%f' expects argument of type 'double', but argument 2 has type 'float *' [-Wformat=]
     printf("%.3f",&y);
                ^

信息

递交者
类型
递交
语言
C
递交时间
2024-10-28 16:41:40
评测时间
2024-10-28 16:41:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes