记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:3: error: expected ';' before 'printf'
   printf("%.3f",y);
   ^~~~~~
/in/foo.c:12:2: error: expected '}' before 'else'
  else if(x>=0 && x<10)
  ^~~~
/in/foo.c:14:3: error: expected ';' before 'printf'
   printf("%.3f",y);
   ^~~~~~
/in/foo.c:17:3: error: expected ';' before 'printf'
   printf("%.3f",y);
   ^~~~~~
/in/foo.c:20:3: error: expected ';' before 'printf'
   printf("%.3f",y);
   ^~~~~~
/in/foo.c:6:14: warning: variable 'y' set but not used [-Wunused-but-set-variable]
     double x,y;
              ^
/in/foo.c: At top level:
/in/foo.c:22:2: error: expected identifier or '(' before 'return'
  return 0;
  ^~~~~~
/in/foo.c:23:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

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