답안 #596754

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
596754 2022-07-15T03:08:12 Z Deepesson Peru (RMI20_peru) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
int solve(int n, int k, int* array){
    assert(N!=2500000);
}

Compilation message

In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from peru.cpp:1:
peru.cpp: In function 'int solve(int, int, int*)':
peru.cpp:3:12: error: 'N' was not declared in this scope
    3 |     assert(N!=2500000);
      |            ^
peru.cpp:4:1: warning: control reaches end of non-void function [-Wreturn-type]
    4 | }
      | ^