记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:9:25: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   p = -b / (2 * a); q = pow(disc, 0.5) / (2 * a);
                         ^~~
/in/foo.c:9:25: warning: incompatible implicit declaration of built-in function 'pow'
/in/foo.c:9:25: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:11:1: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 if (a = 0)
 ^~
/in/foo.c:13:4: warning: statement with no effect [-Wunused-value]
  b != 0;
  ~~^~~~
/in/foo.c:19:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if (disc = 0)
  ^~
/in/foo.c:34:26: warning: format '%f' expects a matching 'double' argument [-Wformat=]
   printf("%.2f+%.2fi\n%.2f-%.2fi\n",p,k);
                          ^
/in/foo.c:34:31: warning: format '%f' expects a matching 'double' argument [-Wformat=]
   printf("%.2f+%.2fi\n%.2f-%.2fi\n",p,k);
                               ^
/in/foo.c:8:12: warning: 'b' is used uninitialized in this function [-Wuninitialized]
   disc = b * b - 4 * a * c;
          ~~^~~
/in/foo.c:8:20: warning: 'a' is used uninitialized in this function [-Wuninitialized]
   disc = b * b - 4 * a * c;
                  ~~^~~
/in/foo.c:8:24: warning: 'c' is used uninitialized in this function [-Wuninitialized]
   disc = b * b - 4 * a * c;
                  ~~~~~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 316.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-11-15 16:41:58
评测时间
2024-11-15 16:41:58
评测机
分数
0
总耗时
1ms
峰值内存
316.0 KiB