제출 #1368070

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

int hack(){
    int result;
    for (int k = 1; k <= 500000; k++) {
        result = collisions({1, 1+k});
        if (result > 0) {
            return k;
            break;
        }
    }
}

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

hack.cpp: In function 'int hack()':
hack.cpp:7:18: error: 'collisions' was not declared in this scope
    7 |         result = collisions({1, 1+k});
      |                  ^~~~~~~~~~
hack.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^