Submission #437694

#TimeUsernameProblemLanguageResultExecution timeMemory
437694ala2Road Closures (APIO21_roads)C++14
0 / 100
44 ms5488 KiB
#include "roads.h" #include <vector> #include<algorithm> using namespace std ; vector<long long>v; vector<long long> minimum_closure_costs(int N, vector<int> U,vector<int> V,vector<int> W) { sort(W.begin(),W.end()); v.push_back(W[0]); for(int i=1;i<W.size();i++) v.push_back(v[0]+W[1]); return v; }

Compilation message (stderr)

roads.cpp: In function 'std::vector<long long int> minimum_closure_costs(int, std::vector<int>, std::vector<int>, std::vector<int>)':
roads.cpp:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |          for(int i=1;i<W.size();i++)
      |                      ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...