记录详情

Memory Exceeded

foo.cc: In function 'std::string f(std::vector<std::vector<int> >, int)':
foo.cc:49:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |         for(int i=0;i<v.size();i++)
      |                     ~^~~~~~~~~
foo.cc: In function 'int sfv(std::string)':
foo.cc:63:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |         for(int i=0;i<s.size();i++)
      |                     ~^~~~~~~~~
foo.cc:66:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   66 |         for(int i=k;i<s.size();i++)
      |                     ~^~~~~~~~~
foo.cc: In function 'int sfx(std::string)':
foo.cc:74:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   74 |         for(int i=0;i<s.size();i++)
      |                     ~^~~~~~~~~
foo.cc: In function 'int f(std::vector<std::vector<int> >, std::vector<int>, int, int)':
foo.cc:89:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   89 |         for(int i=0;i<si.size();i++)
      |                     ~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:108:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  108 |         for(int i=0;i<xy.size();i++)
      |                     ~^~~~~~~~~~
foo.cc:103:17: warning: unused variable 'sum' [-Wunused-variable]
  103 |         int s,e,sum=0;
      |                 ^~~
foo.cc: In function 'int sfv(std::string)':
foo.cc:66:21: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   66 |         for(int i=k;i<s.size();i++)
      |                     ^
foo.cc: In function 'int sfx(std::string)':
foo.cc:73:20: warning: 'ke' may be used uninitialized in this function [-Wmaybe-uninitialized]
   73 |         int n=0,ks,ke;
      |                    ^~
foo.cc:73:17: warning: 'ks' may be used uninitialized in this function [-Wmaybe-uninitialized]
   73 |         int n=0,ks,ke;
      |                 ^~
foo.cc: In function 'int f(std::vector<std::vector<int> >, std::vector<int>, int, int)':
foo.cc:66:21: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
   66 |         for(int i=k;i<s.size();i++)
      |                     ^
foo.cc:62:17: note: 'k' was declared here
   62 |         int n=0,k;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect Inf. 3ms 384.0 KiB
#2 Wrong Answer Read 0, expect Inf. 14ms 11.875 MiB
#3 Memory Exceeded ≥185ms ≥16.016 MiB
#4 Memory Exceeded ≥747ms ≥16.016 MiB
#5 Memory Exceeded ≥995ms ≥16.016 MiB

信息

递交者
类型
递交
题目
5 城市中的最短路径
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 21:15:56
评测时间
2022-08-21 21:15:56
评测机
分数
0
总耗时
≥1946ms
峰值内存
≥16.016 MiB