Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
    7 |         printf("%d %d\n", sizeof(a), sizeof(b));
      |                 ~^        ~~~~~~~~~
      |                  |        |
      |                  int      long unsigned int
      |                 %ld
/in/foo.cc:7:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
    7 |         printf("%d %d\n", sizeof(a), sizeof(b));
      |                    ~^                ~~~~~~~~~
      |                     |                |
      |                     int              long unsigned int
      |                    %ld
# 状态 耗时 内存占用
#1 Accepted 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P2300 1.2.1:整型数据类型存储空间大小
语言
C++
递交时间
2026-01-11 10:41:15
评测时间
2026-01-11 10:41:15
评测机
分数
100
总耗时
2ms
峰值内存
532.0 KiB