제출 #1359476

#제출 시각아이디문제언어결과실행 시간메모리
1359476ramez-hammadHack (APIO25_hack)C++20
컴파일 에러
0 ms0 KiB
#include "hack.h"
#include <bits/stdc++.h>

using namespace std;

int hack() {
    for (int i=1;i<=500,000;i++)
        if ((int)collisions(0,i)) return i; 
}

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

hack.cpp: In function 'int hack()':
hack.cpp:8:29: error: could not convert '0' from 'int' to 'std::vector<long long int>'
    8 |         if ((int)collisions(0,i)) return i;
      |                             ^
      |                             |
      |                             int
hack.cpp:7:14: warning: control reaches end of non-void function [-Wreturn-type]
    7 |     for (int i=1;i<=500,000;i++)
      |              ^