记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%ld%ld",&n,&m);
                 ~~   ^
/in/foo.cc:7:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:10:45: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
   for(int i=1;i<=n;i++)    scanf("%ld",&a[i]);
                                        ~~~~~^
/in/foo.cc:11:45: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
   for(int j=1;j<=m;j++)    scanf("%ld",&b[j]);
                                        ~~~~~^
/in/foo.cc:43:22: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
    printf("%ld\n",tot);
                      ^
/in/foo.cc:47:23: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%ld%ld",&n,&m);
                  ~~   ^
/in/foo.cc:47:23: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
# 状态 耗时 内存占用
#1 Accepted 1ms 312.0 KiB
#2 Accepted 1ms 192.0 KiB
#3 Accepted 1ms 200.0 KiB
#4 Accepted 1ms 192.0 KiB
#5 Accepted 1ms 312.0 KiB
#6 Accepted 1ms 204.0 KiB
#7 Accepted 20ms 1.676 MiB
#8 Accepted 145ms 1.688 MiB
#9 Accepted 127ms 1.32 MiB
#10 Wrong Answer 104ms 1.438 MiB

信息

递交者
类型
递交
题目
买蛋糕
题目数据
下载
语言
C++
递交时间
2018-11-02 21:52:46
评测时间
2018-11-02 21:52:46
评测机
分数
90
总耗时
408ms
峰值内存
1.688 MiB