Mã chấm: 465311


Main.cc:4:1: error: ‘vector’ does not name a type
    4 | vector> vi;
      | ^~~~~~
Main.cc: In function ‘void ql1(int, int, int)’:
Main.cc:14:13: error: ‘vector’ was not declared in this scope
   14 |             vector v;
      |             ^~~~~~
Main.cc:14:20: error: expected primary-expression before ‘int’
   14 |             vector v;
      |                    ^~~
Main.cc:16:29: error: ‘v’ was not declared in this scope
   16 |                 if (l != i) v.pb(a[x[l]]);
      |                             ^
Main.cc:17:22: error: ‘v’ was not declared in this scope
   17 |                 else v.pb(a[x[l]]);
      |                      ^
Main.cc:19:13: error: ‘vi’ was not declared in this scope; did you mean ‘i’?
   19 |             vi.push_back(v);
      |             ^~
      |             i
Main.cc:19:26: error: ‘v’ was not declared in this scope
   19 |             vi.push_back(v);
      |                          ^
Main.cc: In function ‘int main()’:
Main.cc:30:5: error: ‘cin’ was not declared in this scope
   30 |     cin >> n >> s;
      |     ^~~
Main.cc:32:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   32 |     sort(a + 1, a + n + 1);
      |     ^~~~
      |     short
Main.cc:34:20: error: ‘cout’ was not declared in this scope
   34 |     if (flag == 0) cout << -1 << endl;
      |                    ^~~~
Main.cc:34:34: error: ‘endl’ was not declared in this scope
   34 |     if (flag == 0) cout << -1 << endl;
      |                                  ^~~~
Main.cc:38:25: error: ‘vi’ was not declared in this scope; did you mean ‘i’?
   38 |     for (int i = 0; i < vi.size(); i++){
      |                         ^~
      |                         i
Main.cc:40:23: error: ‘min’ was not declared in this scope; did you mean ‘main’?
   40 |             min_val = min({min_val, (int)vi[i].size()});
      |                       ^~~
      |                       main
Main.cc:44:18: error: ‘vi’ was not declared in this scope
   44 |     for (int x : vi[idx]){
      |                  ^~
Main.cc:45:9: error: ‘cout’ was not declared in this scope
   45 |         cout << x << " ";
      |         ^~~~