Wrong Answer

foo.cc: In function 'int main()':
foo.cc:36:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   36 |   printf("%d = %d + %d \n",n,p,q) ;
      |           ~^               ~
      |            |               |
      |            int             long int
      |           %ld
foo.cc:36:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
   36 |   printf("%d = %d + %d \n",n,p,q) ;
      |                ~^            ~
      |                 |            |
      |                 int          long int
      |                %ld
foo.cc:36:22: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
   36 |   printf("%d = %d + %d \n",n,p,q) ;
      |                     ~^         ~
      |                      |         |
      |                      int       long int
      |                     %ld
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |  scanf("%ld",&n );
      |  ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 1 1ms 384.0 KiB
#2 Wrong Answer 0a1 > 6 3ms 384.0 KiB
#3 Wrong Answer 0a1 > 37 1ms 384.0 KiB
#4 Wrong Answer 0a1 > 481 1ms 384.0 KiB
#5 Wrong Answer 0a1 > 574 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1781 哥德巴赫猜想(gede)
语言
C++
递交时间
2022-01-15 11:44:44
评测时间
2022-01-15 11:44:44
评测机
分数
0
总耗时
10ms
峰值内存
384.0 KiB