Submission #796155

#TimeUsernameProblemLanguageResultExecution timeMemory
796155t6twotwoKeys (IOI21_keys)C++17
0 / 100
1 ms300 KiB
#include "keys.h" #include <bits/stdc++.h> using namespace std; using ll = long long; vector<int> find_reachable(vector<int> R, vector<int> U, vector<int> V, vector<int> C) { int N = R.size(), M = C.size(); if (C == vector(M, 0)) { if (R == vector(N, 0)) { return vector(N, 1); } vector<int> ans(N); for (int i = 0; i < N; i++) { if (R[i] != 0) { ans[i] = 1; } } return ans; } }

Compilation message (stderr)

keys.cpp: In function 'std::vector<int> find_reachable(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
keys.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
#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...