/ Vijos /

记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:14:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   14 |         while(std::scanf("%d%d%s",&country[cnt+1].size,&country[cnt+1].dis,country[cnt+1].name)!=EOF) ++cnt;
      |                             ~^                         ~~~~~~~~~~~~~~~~~~~
      |                              |                         |
      |                              int*                      long long int*
      |                             %lld
foo.cc:19:37: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
   19 |                 if(sum[i]>=(sum[cnt]+1>>1)){
      |                             ~~~~~~~~^~
foo.cc:17:13: warning: ‘id’ may be used uninitialized [-Wmaybe-uninitialized]
   17 |         int id;
      |             ^~
# 状态 耗时 内存占用
#1 Accepted 3ms 324.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 2ms 324.0 KiB
#7 Wrong Answer Read BFHHAPDYHW, expect PQNUVVXRYD. 2ms 532.0 KiB
#8 Wrong Answer Read JADMTJEUQG, expect MWKVOORFXO. 3ms 580.0 KiB
#9 Accepted 3ms 764.0 KiB
#10 Wrong Answer Read IRPZOVTFBF, expect YKLDNLSAGB. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1225 拯救世界-紧急召集
语言
C++
递交时间
2024-05-12 08:25:41
评测时间
2024-05-12 08:25:41
评测机
分数
70
总耗时
30ms
峰值内存
764.0 KiB