/ Vijos /

记录详情

Accepted

foo.cc: In function 'void addNum(std::vector<Num>&, Num&)':
foo.cc:137:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  137 |  for(int i=0;i<v.size();i++) {
      |              ~^~~~~~~~~
foo.cc: In function 'Num& getGoodOne(int, int)':
foo.cc:201:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  201 |  for(int i=0;i<vi.size();i++) {
      |              ~^~~~~~~~~~
foo.cc: In function 'void preCalc()':
foo.cc:260:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  260 |    for(int k=0;k<preBuild.size();k++) {
      |                ~^~~~~~~~~~~~~~~~
foo.cc:261:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  261 |     for(int k2=k+1;k2<preBuild.size();k2++) {
      |                    ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:278:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  278 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:288:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  288 |  for(int i=0;i<3;i++) scanf("%d%d", &p[i], &q[i]);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 82ms 6.867 MiB
#2 Accepted 6ms 640.0 KiB
#3 Accepted 5ms 896.0 KiB
#4 Accepted 8ms 1.0 MiB
#5 Accepted 9ms 2.0 MiB
#6 Accepted 9ms 2.875 MiB
#7 Accepted 30ms 3.625 MiB
#8 Accepted 20ms 5.125 MiB
#9 Accepted 24ms 6.125 MiB
#10 Accepted 47ms 6.875 MiB

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2022-07-25 20:00:28
评测时间
2022-07-25 20:00:52
评测机
分数
100
总耗时
243ms
峰值内存
6.875 MiB