Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int;
typedef vector<lo> vl;
typedef vector<vl>vll;
#define all(v) (v).begin(), (v).end()
#define debug(x) cerr<<#x<<" = "<<x<<endl;
#define REPV(a, b, c) for (lo(a) = b; (a) < (c); (a)++) 
#define REP(a,b) for(lo i =(a) ;i<(b);i++)

template <typename T>

istream &operator>>(istream &in, vector<T> &v)
{
    for (unsigned i = 0; i < v.size(); i++)
        in >> v[i];
    return in;
}

bool compare(vl &under_std,lo X){
    REP(0,under_std.size()){
        if(under_std[i]<X)return false;
    }
    return true;
}



lo solve(vll &u_std,vl &cost,vl &under_std,lo money,lo N,lo X){
    if(compare(under_std,X))return money;
    if(N==0)return LLONG_MAX;
    vl a(under_std.size(),0);
    REP(0,under_std.size()){
        a[i]=u_std[N-1][i]+under_std[i];
    } 
    lo money1 = solve(u_std,cost,a,money+cost[N-1],N-1,X);
    lo money2 = solve(u_std,cost,under_std,money,N-1,X);
   return min(money1,money2);

}
void solve1(){

    lo N,M,X,c;
    vl cost(N);
    vll u_std;
    cin>>N>>M>>X;
    for(lo i=0;i<N;i++){
        cin>>c;
        cost.push_back(c);
        vl temp(M);
        cin>>temp;
        u_std.push_back(temp);
        temp.clear();

    }
    vl under_std(M,0);lo money=0;

     lo ans = solve(u_std,cost,under_std,money,N,X);
     if(ans ==LLONG_MAX)cout<<"-1";
     else cout<<ans;
}


int main(){
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    cout.precision(20);
    solve1();
    return 0;
}

Compiler output:
a.cc:3:19: error: declaration does not declare anything [-fpermissive]
    3 | typedef long long int;
      |                   ^~~
a.cc:4:16: error: 'lo' was not declared in this scope; did you mean 'log'?
    4 | typedef vector<lo> vl;
      |                ^~
      |                log
a.cc:4:18: error: template argument 1 is invalid
    4 | typedef vector<lo> vl;
      |                  ^
a.cc:4:18: error: template argument 2 is invalid
a.cc:20:28: error: 'lo' has not been declared
   20 | bool compare(vl &under_std,lo X){
      |                            ^~
a.cc: In function 'bool compare(vl&, int)':
a.cc:9:22: error: 'lo' was not declared in this scope; did you mean 'log'?
    9 | #define REP(a,b) for(lo i =(a) ;i<(b);i++)
      |                      ^~
a.cc:21:5: note: in expansion of macro 'REP'
   21 |     REP(0,under_std.size()){
      |     ^~~
a.cc:9:33: error: 'i' was not declared in this scope
    9 | #define REP(a,b) for(lo i =(a) ;i<(b);i++)
      |                                 ^
a.cc:21:5: note: in expansion of macro 'REP'
   21 |     REP(0,under_std.size()){
      |     ^~~
a.cc:21:21: error: request for member 'size' in 'under_std', which is of non-class type 'vl' {aka 'int'}
   21 |     REP(0,under_std.size()){
      |                     ^~~~
a.cc:9:36: note: in definition of macro 'REP'
    9 | #define REP(a,b) for(lo i =(a) ;i<(b);i++)
      |                                    ^
a.cc: At global scope:
a.cc:29:1: error: 'lo' does not name a type
   29 | lo solve(vll &u_std,vl &cost,vl &under_std,lo money,lo N,lo X){
      | ^~
a.cc: In function 'void solve1()':
a.cc:43:5: error: 'lo' was not declared in this scope; did you mean 'log'?
   43 |     lo N,M,X,c;
      |     ^~
      |     log
a.cc:44:13: error: 'N' was not declared in this scope
   44 |     vl cost(N);
      |             ^
a.cc:46:13: error: 'M' was not declared in this scope
   46 |     cin>>N>>M>>X;
      |             ^
a.cc:46:16: error: 'X' was not declared in this scope
   46 |     cin>>N>>M>>X;
      |                ^
a.cc:47:11: error: expected ';' before 'i'
   47 |     for(lo i=0;i<N;i++){
      |           ^~
      |           ;
a.cc:47:16: error: 'i' was not declared in this scope
   47 |     for(lo i=0;i<N;i++){
      |                ^
a.cc:48:14: error: 'c' was not declared in this scope
   48 |         cin>>c;
      |              ^
a.cc:49:14: error: request for member 'push_back' in 'cost', which is of non-class type 'vl' {aka 'int'}
   49 |         cost.push_back(c);
      |              ^~~~~~~~~
a.cc:53:14: error: request for member 'clear' in 'temp', which is of non-class type 'vl' {aka 'int'}
   53 |         temp.clear();
      |              ^~~~~
a.cc:56:21: error: expression list treated as compound expression in initializer [-fpermissive]
   56 |     vl under_std(M,0);lo money=0;
      |                     ^
a.cc:56:25: error: expected ';' before 'money'
   56 |     vl under_std(M,0);lo money=0;
      |                         ^~~~~~
      |                         ;
a.cc:58:8: error: expected ';' before 'ans'
   58 |      lo ans = solve(u_std,cost,under_std,money,N,X);
      |        ^~~~
      |        ;
a.cc:59:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   59 |      if(ans ==LLONG_MAX)cout<<"-1";
      |         ^~~
      |         abs