记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:13: warning: format '%a' expects a matching 'float *' argument [-Wformat=]
    8 |     scanf("%a");
      |            ~^
      |             |
      |             float *
foo.c:9:5: error: 'if\U0000ff08a' undeclared (first use in this function)
    9 |     if(a%b=0)
      |     ^~~~~
foo.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:13: error: invalid suffix ")" on integer constant
    9 |     if(a%b=0)
      |             ^~~
foo.c:9:16: error: expected ';' before 'printf'
    9 |     if(a%b=0)
      |                ^
      |                ;
   10 |         printf("YRS);
      |         ~~~~~~  
foo.c:10:16: warning: missing terminating " character
   10 |         printf("YRS);
      |                ^
foo.c:10:16: error: missing terminating " character
   10 |         printf("YRS);
      |                ^~~~~~
foo.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
foo.c:5:9: warning: unused variable 'a' [-Wunused-variable]
    5 |     int a,b;
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-2 素数专题:素数判断
比赛
2023年新生赛(第一场)
语言
C
递交时间
2023-08-15 16:44:26
评测时间
2023-08-15 16:44:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes