记录详情

Compile Error

/in/foo.c:1:1: error: stray '##' in program
 ##include<stdio.h>
 ^~
/in/foo.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 ##include<stdio.h>
          ^
/in/foo.c: In function 'main':
/in/foo.c:6:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%f,%f,%f",&a,&b,&c);
     ^~~~~
/in/foo.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:8:14: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     if(a==0) printf("%.2f",(-c/b));
              ^~~~~~
/in/foo.c:8:14: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:8:14: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:9:18: warning: incompatible implicit declaration of built-in function 'printf'
     else if(d>0) printf("%.2f\n%.2f",(-b+sqrt(d))/2/a,(-b-sqrt(d))/2/a);
                  ^~~~~~
/in/foo.c:9:18: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:10:20: warning: incompatible implicit declaration of built-in function 'printf'
      else if(d==0) printf("%.2f",-b/2/a);
                    ^~~~~~
/in/foo.c:10:20: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:14:2: warning: incompatible implicit declaration of built-in function 'printf'
  printf("%.2f+%.2fi\n%.2f-%.2fi",(-b/2/a),(e/2/a),(-b/2/a),(e/2/a));
  ^~~~~~
/in/foo.c:14:2: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

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