记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:4:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    4 |         scanf("%d",n);
      |                ~^  ~
      |                 |  |
      |                 |  int
      |                 int *
/in/foo.c:5:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    5 |         if(n>=80&n<=100){printf("A\n");}
      |            ~^~~~
/in/foo.c:6:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    6 |         else if(n>=70&n<=79){printf("B\n");}
      |                 ~^~~~
/in/foo.c:7:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    7 |         else if(n>=60&n<=69){printf("C\n");}
      |                 ~^~~~
/in/foo.c:8:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
    8 |         else if(n>=0&n<60){printf("D\n");}
      |                 ~^~~
/in/foo.c:8:41: error: expected ';' before '\U0000ff1b'
    8 |         else if(n>=0&n<60){printf("D\n");}
      |                                         ^~
      |                                         ;
/in/foo.c:8:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
    8 |         else if(n>=0&n<60){printf("D\n");}
      |         ^~~~
/in/foo.c:8:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
/in/foo.c:8:9: error: expected declaration or statement at end of input

信息

递交者
类型
递交
比赛
2025-C-9
语言
C
递交时间
2025-12-29 15:43:42
评测时间
2025-12-29 15:43:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes