제출 #1361691

#제출 시각아이디문제언어결과실행 시간메모리
1361691opeleklanosHack (APIO25_hack)C++20
컴파일 에러
0 ms0 KiB
#include <iostream>
#include <vector>
using namespace std;

// int secretNum = 8;

int mx = 1000000;

int hack(){
    for(int i = 2; i<mx; i++){
        if(collisions({1, i})) return i-1;
    }
    return -1;
}

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

hack.cpp: In function 'int hack()':
hack.cpp:11:12: error: 'collisions' was not declared in this scope
   11 |         if(collisions({1, i})) return i-1;
      |            ^~~~~~~~~~