제출 #796155

#제출 시각아이디문제언어결과실행 시간메모리
796155t6twotwo열쇠 (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; } }

컴파일 시 표준 에러 (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...