# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
869791 |
2023-11-05T17:04:24 Z |
ElenaBM |
ICC (CEOI16_icc) |
C++17 |
|
0 ms |
0 KB |
#include <bits/stdc++.h>
#include "icc.h"
using namespace std;
void subsets(vector<vector<bool>>&matriz, int n){
for (int i = 1; i < n; ++i){
for (int j = i+1; j <= n; ++j){
if (!matriz[i][j]){
int a[1] = {i}, b[1] = {j};
if (query(1, 1, a, b)){
setRoad(i, j);
matriz[i][j] = true;
matrz[j][i] = true;
return;
}
}
}
}
}
void run (int n){
vector<vector<bool>>matriz(n+1, vector<bool>(n+1, false));
for (int s = 0; s < n-1; ++s){
subsets (matriz, n);
}
}
Compilation message
icc.cpp: In function 'void subsets(std::vector<std::vector<bool> >&, int)':
icc.cpp:12:21: error: 'matrz' was not declared in this scope; did you mean 'matriz'?
12 | matrz[j][i] = true;
| ^~~~~
| matriz