/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:39: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
  for(i=1;i<=n;i++) scanf("%s",&name[i]);
                                       ^
/in/foo.cc:14:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
    scanf("%s",&np[i]);
                     ^
/in/foo.cc:20:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
     scanf("%s",&o);
                  ^
/in/foo.cc:24:57: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
  for(i=1;i<=n;i++) printf("%s %d\n",name[i],a[name[i]].g);
                                                         ^
/in/foo.cc:6:12: warning: unused variable 'k' [-Wunused-variable]
  int n,i,j,k,sum,l,q;
            ^
# 状态 耗时 内存占用
#1 Runtime Error 3ms 348.0 KiB
#2 Runtime Error 3ms 380.0 KiB
#3 Runtime Error 2ms 384.0 KiB
#4 Runtime Error 1ms 196.0 KiB
#5 Runtime Error 3ms 256.0 KiB
#6 Runtime Error 3ms 324.0 KiB
#7 Runtime Error 3ms 324.0 KiB
#8 Runtime Error 3ms 324.0 KiB
#9 Runtime Error 2ms 328.0 KiB
#10 Runtime Error 2ms 340.0 KiB

信息

递交者
类型
递交
题目
P1035 贪婪的送礼者
语言
C++
递交时间
2017-08-17 16:01:10
评测时间
2017-08-17 16:01:10
评测机
分数
0
总耗时
29ms
峰值内存
384.0 KiB