제출 #839353

#제출 시각아이디문제언어결과실행 시간메모리
839353amunduzbaev수천개의 섬 (IOI22_islands)C++17
1.75 / 100
25 ms4180 KiB
#include "islands.h" #include "bits/stdc++.h" using namespace std; #define ar array typedef long long ll; //~ #defint int ll variant<bool, vector<int>> find_journey(int n, int m, vector<int> u, vector<int> v) { if(n == 2){ ar<int, 2> cc {}; for(int i=0;i<m;i++){ cc[u[i]]++; } if(cc[0] >= 2 && cc[1] >= 1){ //~ cout<<"here"<<endl; return (vector<int>){0}; } else { return false; } } }

컴파일 시 표준 에러 (stderr) 메시지

islands.cpp: In function 'std::variant<bool, std::vector<int, std::allocator<int> > > find_journey(int, int, std::vector<int>, std::vector<int>)':
islands.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
   25 | }
      | ^
#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...