记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
    6 |         scanf("%d %d",&a,&b)
      |                ~^     ~~
      |                 |     |
      |                 int * long long int *
      |                %lld
/in/foo.c:6:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
    6 |         scanf("%d %d",&a,&b)
      |                   ~^     ~~
      |                    |     |
      |                    int * long long int *
      |                   %lld
/in/foo.c:6:29: error: expected ';' before 'printf'
    6 |         scanf("%d %d",&a,&b)
      |                             ^
      |                             ;
    7 |     printf("%d",a*b);
      |     ~~~~~~                   

信息

递交者
类型
递交
题目
P1496 Problem 1A. A*B
语言
C
递交时间
2025-06-14 09:03:12
评测时间
2025-06-14 09:03:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes