记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:9: error: incompatible type for argument 1 of 'sqrt'
  r=sqrt("a*2+b*2")
         ^~~~~~~~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdio.h:27,
                 from /in/foo.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:156:1: note: expected 'double' but argument is of type 'char *'
 __MATHCALL (sqrt,, (_Mdouble_ __x));
 ^
/in/foo.c:9:2: error: expected ';' before 'printf'
  printf("r")
  ^~~~~~
/in/foo.c:6:13: warning: variable 'r' set but not used [-Wunused-but-set-variable]
     int a,b,r;
             ^

信息

递交者
类型
递交
语言
C
递交时间
2019-10-24 23:00:45
评测时间
2019-10-24 23:00:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes