제출 #1312735

#제출 시각아이디문제언어결과실행 시간메모리
1312735eri16Hack (APIO25_hack)C++20
8 / 100
132 ms416 KiB
#include <bits/stdc++.h> #include "hack.h" using namespace std; using ll = long long; int hack(){ vector <ll> tm; for (int i=3; i<=500001; i++){ tm.clear(); tm.push_back(i); tm.push_back(1); ll found = collisions(tm); if (found == 1){ return i - 1; } } }

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

hack.cpp: In function 'int hack()':
hack.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type]
   22 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...