답안 #597132

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
597132 2022-07-15T14:34:49 Z definitelynotmee Peru (RMI20_peru) C++17
컴파일 오류
0 ms 0 KB
    #include "peru.h"
    #include<bits/stdc++.h>
    #define ff first
    #define ss second
    #define all(x) x.begin(), x.end()
    using namespace std;
    using ll = long long;
    using pii = pair<int,int>;
    using pll = pair<ll,ll>;
    template<typename T>
    using matrix = vector<vector<T>>;
    const ll INFL = 1ll<<60;
    const int MOD = 1e9+7;
     
    int solve(int n, int k, int* v){
     
        exit(n);
        
        return resp;
    }

Compilation message

peru.cpp: In function 'int solve(int, int, int*)':
peru.cpp:19:16: error: 'resp' was not declared in this scope
   19 |         return resp;
      |                ^~~~