#include "hack.h"
#include <vector>
#include <map>
using ll = long long;
int hack(){
// std::vector<long long> x = {3333,2565454,21223,898997,9999,4,8,100,2340040,222,44,2222211};
// long long a = collisions(x);
std::vector<ll> x;
ll n;
for(n=1;n<=500000;++n)
{
x.push_back(n);
ll a = collisions(x);
if(a==1)
return n - 1;
}
}
컴파일 시 표준 에러 (stderr) 메시지
hack.cpp: In function 'int hack()':
hack.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
20 | }
| ^
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |