Submission #596754

# Submission time Handle Problem Language Result Execution time Memory
596754 2022-07-15T03:08:12 Z Deepesson Peru (RMI20_peru) C++17
Compilation error
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 | }
      | ^