记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:11:19: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
 scanf("%s",a[b[j]]);
                   ^
foo.cc:14:19: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
 printf("%s\n",a[j]);
                   ^
foo.cc:5:11: warning: unused variable 'k' [-Wunused-variable]
 int i=0,j,k;
           ^
foo.cc:8:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&b[i++]);
 ~~~~~^~~~~~~~~~~~~~
foo.cc:11:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s",a[b[j]]);
 ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Time Exceeded ≥1406ms ≥240.0 KiB
#2 Time Exceeded ≥1405ms ≥256.0 KiB
#3 Time Exceeded ≥1407ms ≥236.0 KiB
#4 Time Exceeded ≥1406ms ≥212.0 KiB
#5 Time Exceeded ≥1395ms ≥236.0 KiB
#6 Time Exceeded ≥1396ms ≥236.0 KiB
#7 Time Exceeded ≥1457ms ≥240.0 KiB
#8 Time Exceeded ≥1454ms ≥244.0 KiB
#9 Time Exceeded ≥1461ms ≥236.0 KiB
#10 Time Exceeded ≥1476ms ≥292.0 KiB

信息

递交者
类型
递交
题目
P1101 婚礼上的小杉
语言
C++
递交时间
2021-02-01 12:30:54
评测时间
2021-02-01 12:30:54
评测机
分数
0
总耗时
≥14268ms
峰值内存
≥292.0 KiB