/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  scanf("%d%d%d%d%d%d%d%d%d",&l1,&l2,&l3,&c1,&c2,&c3,&n,&s,&t);
                             ~~~                             ^
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 8 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 9 has type 'long int*' [-Wformat=]
/in/foo.cc:10:61: warning: format '%d' expects argument of type 'int*', but argument 10 has type 'long int*' [-Wformat=]
/in/foo.cc:9:7: warning: unused variable 'i' [-Wunused-variable]
  long i,j;
       ^
/in/foo.cc:9:9: warning: unused variable 'j' [-Wunused-variable]
  long i,j;
         ^
# 状态 耗时 内存占用
#1 Accepted 3ms 320.0 KiB
#2 Runtime Error 2ms 452.0 KiB
#3 Runtime Error 1ms 316.0 KiB
#4 Runtime Error 2ms 316.0 KiB
#5 Runtime Error 2ms 324.0 KiB
#6 Runtime Error 2ms 316.0 KiB
#7 Runtime Error 2ms 320.0 KiB
#8 Runtime Error 1ms 312.0 KiB
#9 Runtime Error 1ms 320.0 KiB
#10 Runtime Error 1ms 452.0 KiB

信息

递交者
类型
递交
题目
P1292 火车票
语言
C++
递交时间
2017-09-23 16:33:34
评测时间
2017-09-23 16:33:34
评测机
分数
10
总耗时
23ms
峰值内存
452.0 KiB