记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
    6 |     scanf("%d%c%d", &x, &op, &y);
      |            ~^       ~~
      |             |       |
      |             int*    long long unsigned int*
      |            %lld
/in/foo.cc:6:17: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long unsigned int*' [-Wformat=]
    6 |     scanf("%d%c%d", &x, &op, &y);
      |                ~^            ~~
      |                 |            |
      |                 int*         long long unsigned int*
      |                %lld
/in/foo.cc:17:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=]
   17 |     printf("%d", z);
      |             ~^   ~
      |              |   |
      |              int long long unsigned int
      |             %lld
# 状态 耗时 内存占用
#1 Accepted 1ms 392.0 KiB
#2 Accepted 1ms 284.0 KiB
#3 Accepted 1ms 284.0 KiB
#4 Accepted 1ms 336.0 KiB
#5 Accepted 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1013 Contest1-2 计算器
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-15 20:37:37
评测时间
2026-11-15 20:37:37
评测机
分数
100
总耗时
5ms
峰值内存
392.0 KiB