记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:10: error: stray '\342' in program
    8 |    scanf(“%d”,&b);
      |          ^
foo.c:8:11: error: expected expression before '%' token
    8 |    scanf(“%d”,&b);
      |           ^
foo.c:8:13: error: stray '\342' in program
    8 |    scanf(“%d”,&b);
      |             ^
foo.c:9:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    9 |   for(int n=2,n<b,n++)
      |                ^
foo.c:19:8: error: stray '\342' in program
   19 | printf(“%d”,&s);
      |        ^
foo.c:19:9: error: expected expression before '%' token
   19 | printf(“%d”,&s);
      |         ^
foo.c:19:11: error: stray '\342' in program
   19 | printf(“%d”,&s);
      |           ^
foo.c:20:1: error: expected expression before 'return'
   20 | return 0;
      | ^~~~~~
foo.c:21:1: error: expected expression before '}' token
   21 | }
      | ^
foo.c:9:11: warning: unused variable 'n' [-Wunused-variable]
    9 |   for(int n=2,n<b,n++)
      |           ^
foo.c:7:8: warning: unused variable 's' [-Wunused-variable]
    7 |    int s=0;
      |        ^
foo.c:6:8: warning: unused variable 'b' [-Wunused-variable]
    6 |    int b=0;
      |        ^
foo.c:5:8: warning: unused variable 'a' [-Wunused-variable]
    5 |    int a=0;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-3 素数专题:素数个数
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 19:23:03
评测时间
2022-08-15 19:23:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes