记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:36: error: expected ';' before '}' token
  if(x<-100||x>100){printf("Error!")}
                                    ^
/in/foo.c:7:17: error: expected ';' before '}' token
  if(x<0){y=3*x-1}
                 ^
/in/foo.c:8:29: error: expected ';' before '}' token
  else if(x<10){y=2*x*x+4*x-5}
                             ^
/in/foo.c:9:18: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
  else if(x<25){y=sqrt(5*x+10)}
                  ^~~~
/in/foo.c:9:18: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:9:18: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:9:30: error: expected ';' before '}' token
  else if(x<25){y=sqrt(5*x+10)}
                              ^

信息

递交者
类型
自测
语言
C
递交时间
2024-11-01 17:34:42
评测时间
2024-11-01 17:34:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes