Submission #588849

#TimeUsernameProblemLanguageResultExecution timeMemory
588849SeDunionBroken Device 2 (JOI22_device2)C++17
5 / 100
751 ms524288 KiB
#include "Anna.h" #include <utility> #include <vector> using namespace std; using vi = vector<int>; using ll = long long; namespace { int variable_example = 0; } int Declare() { return 2000; } pair<vi,vi> Anna(ll A) { vi X, Y; while (A--) X.emplace_back(1); while ((int)X.size() < 2000) X.emplace_back(0); while ((int)Y.size() < 2000) Y.emplace_back(0); return make_pair(X, Y); }
#include "Bruno.h" #include <utility> #include <vector> using namespace std; using vi = vector<int>; using ll = long long; namespace { int variable_example = 0; } ll Bruno(vi u) { int cnt = 0; for (int i : u) cnt += i; return cnt; }

Compilation message (stderr)

Anna.cpp:11:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
   11 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~

Bruno.cpp:11:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
   11 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
#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...