记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d%d",&a,&b);
                    ^
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:8:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d+%d=%d\n",a,b,a+b);
                             ^
/in/foo.cc:8:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
/in/foo.cc:8:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
/in/foo.cc:9:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d-%d=%d\n",a,b,a-b);
                             ^
/in/foo.cc:9:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
/in/foo.cc:9:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
/in/foo.cc:10:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d*%d=%d\n",a,b,a*b);
                             ^
/in/foo.cc:10:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
/in/foo.cc:10:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
/in/foo.cc:11:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d/%d=%.2f\n",a,b,c);
                             ^
/in/foo.cc:11:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB
#2 Wrong Answer 1ms 212.0 KiB
#3 Wrong Answer 2ms 216.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 2ms 204.0 KiB

信息

递交者
类型
递交
题目
四则计算器
语言
C++
递交时间
2019-05-14 12:41:35
评测时间
2019-05-14 12:41:35
评测机
分数
0
总耗时
9ms
峰值内存
216.0 KiB