Language: C++

using namespace std;
using ll = long long int;
using pii = pair<int, int>;
#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main() {
  int n,m,x;
  cin>>n>>m>>x;
  vector<vector<int>> v(n,vector<int>(m+1));
 
  rep(i,n){
    rep(j,m+1){
      cin>>v.at(i).at(j);
    }
  }
  int c=0;
  rep(i,n){c+=v.at(i).at(0);cout<<v.at(i).at(0);}
  cout<<c<<endl;
 
  rep(tmp,1<<12){
    bitset<12> b(tmp);
    vector<int> vec(m+1,0);
   
    rep(j,m+1){
       rep(i,n){
        vec.at(j)+=b[i]*v.at(i).at(j);
      }
    }
    bool bo=true;
    rep(j,m){
      if(vec.at(j+1)<x){
        bo=false;break;}
    }
    if(bo){c=min(c,vec.at(0));}
    if(tmp==(1<<12)-1&&bo==false){c=-1;}
  }
  
  cout<<c;
}



Compiler output:
a.cc:3:13: error: 'pair' does not name a type
    3 | using pii = pair<int, int>;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>n>>m>>x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<vector<int>> v(n,vector<int>(m+1));
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:10:17: error: expected primary-expression before 'int'
   10 |   vector<vector<int>> v(n,vector<int>(m+1));
      |                 ^~~
a.cc:14:12: error: 'v' was not declared in this scope
   14 |       cin>>v.at(i).at(j);
      |            ^
a.cc:18:15: error: 'v' was not declared in this scope
   18 |   rep(i,n){c+=v.at(i).at(0);cout<<v.at(i).at(0);}
      |               ^
a.cc:18:29: error: 'cout' was not declared in this scope
   18 |   rep(i,n){c+=v.at(i).at(0);cout<<v.at(i).at(0);}
      |                             ^~~~
a.cc:18:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout<<c<<endl;
      |   ^~~~
a.cc:19:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:12: error: 'endl' was not declared in this scope
   19 |   cout<<c<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:22:5: error: 'bitset' was not declared in this scope
   22 |     bitset<12> b(tmp);
      |     ^~~~~~
a.cc:1:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
  +++ |+#include <bitset>
    1 | using namespace std;
a.cc:22:16: error: 'b' was not declared in this scope
   22 |     bitset<12> b(tmp);
      |                ^
a.cc:23:12: error: expected primary-expression before 'int'
   23 |     vector<int> vec(m+1,0);
      |            ^~~
a.cc:27:9: error: 'vec' was not declared in this scope
   27 |         vec.at(j)+=b[i]*v.at(i).at(j);
      |         ^~~
a.cc:27:25: error: 'v' was not declared in this scope
   27 |         vec.at(j)+=b[i]*v.at(i).at(j);
      |                         ^
a.cc:32:10: error: 'vec' was not declared in this scope
   32 |       if(vec.at(j+1)<x){
      |          ^~~
a.cc:35:20: error: 'vec' was not declared in this scope
   35 |     if(bo){c=min(c,vec.at(0));}
      |                    ^~~
a.cc:35:14: error: 'min' was not declared in this scope; did you mean 'main'?
   35 |     if(bo){c=min(c,vec.at(0));}
      |              ^~~
      |              main