Borderou de evaluare (job #2381668)
Utilizator | Data | 17 martie 2019 12:10:18 | |
---|---|---|---|
Problema | Posta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: 'vector' does not name a type
vector<pair<int, int>> v[MAXN];
^~~~~~
main.cpp: In function 'int dfs(int)':
main.cpp:20:25: error: 'v' was not declared in this scope
for (int i = 0; i < v[k].size(); ++i) {
^
main.cpp: In function 'int main()':
main.cpp:43:9: error: 'v' was not declared in this scope
v[a].push_back({b, c});
^
main.cpp:60:33: error: 'v' was not declared in this scope
for (int j = 0; j < v[i].size(); ++j) {
^
main.cpp:69:13: error: 'v' was not declared in this scope
v[i].clear();
^
main.cpp:71:29: error: 'v' was not declared in this scope
for (int j = 0; j < v[i].size(); ++j) {
^
main.cpp:80:37: error: 'v' was not declared in this scope
s += (long long)c[i] * (v[i].size() - 1);
^
main.cpp:88:50: error: 'v' was not declared in this scope
sol = min(sol,s - (long long)c[i] * (v[i].size() - 1));
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !