记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    7 |         for(int x=0;x<n;x++);
      |         ^~~
foo.c:8:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    8 |                 {
      |                 ^
foo.c:10:33: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
   10 |                         scanf("%d%d\n",&a,&b);
      |                                ~^      ~~
      |                                 |      |
      |                                 int *  long long int *
      |                                %lld
foo.c:10:35: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
   10 |                         scanf("%d%d\n",&a,&b);
      |                                  ~^       ~~
      |                                   |       |
      |                                   int *   long long int *
      |                                  %lld
foo.c:12:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   12 |                         printf("%d\n",result);
      |                                 ~^    ~~~~~~
      |                                  |    |
      |                                  int  long long int
      |                                 %lld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1674919425, expect 9999999800000001. 2ms 284.0 KiB
#2 Wrong Answer Read -1674919425, expect -9999999800000001. 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1496 Problem 1A. A*B
比赛
2023秋 悬赏令第一周
语言
C
递交时间
2023-10-07 19:34:10
评测时间
2023-10-07 19:34:10
评测机
分数
0
总耗时
4ms
峰值内存
284.0 KiB