Accepted

foo.cc: In function ‘int main()’:
foo.cc:6:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    6 |         printf("%d %d",sizeof x,sizeof y);
      |                 ~^     ~~~~~~~~
      |                  |     |
      |                  int   long unsigned int
      |                 %ld
foo.cc:6:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
    6 |         printf("%d %d",sizeof x,sizeof y);
      |                    ~^           ~~~~~~~~
      |                     |           |
      |                     int         long unsigned int
      |                    %ld
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB

信息

递交者
类型
递交
题目
P2300 1.2.1:整型数据类型存储空间大小
语言
C++
递交时间
2024-04-01 13:55:25
评测时间
2024-04-01 13:55:25
评测机
分数
100
总耗时
3ms
峰值内存
536.0 KiB