Borderou de evaluare (job #2152198)
Utilizator | Data | 5 martie 2018 12:37:40 | |
---|---|---|---|
Problema | Ksecv4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘bool Nod::operator<(const Nod&) const’:
user.cpp:17:20: error: ‘lvl’ was not declared in this scope
return lvl[id] > lvl[ot.id];
^
user.cpp: In function ‘void get40p()’:
user.cpp:68:21: error: invalid types ‘int[int]’ for array subscript
y = anc[y][0];
^
user.cpp:74:29: error: invalid types ‘int[int]’ for array subscript
nod = anc[nod][0];
^
user.cpp:80:29: error: invalid types ‘int[int]’ for array subscript
nod = anc[nod][0];
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:89:20: error: ‘V’ was not declared in this scope
for (int son : V[nod])
^
user.cpp: In function ‘void solveQueries()’:
user.cpp:102:14: error: invalid types ‘int[int]’ for array subscript
ans[i] = 1;
^
user.cpp:111:26: error: invalid types ‘int[int]’ for array subscript
ans[Q[idQ].id] = 1 + sum(tout[Q[id].y]) - sum()
^
user.cpp:111:45: error: ‘id’ was not declared in this scope
ans[Q[idQ].id] = 1 + sum(tout[Q[id].y]) - sum()
^
user.cpp:111:51: error: ‘sum’ was not declared in this scope
ans[Q[idQ].id] = 1 + sum(tout[Q[id].y]) - sum()
^
user.cpp: In function ‘int main()’:
user.cpp:121:13: error: ‘V’ was not declared in this scope
V[anc[i]].push_back(i);
^
user.cpp: In function ‘void get40p()’:
user.cpp:66:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &y, &x);
^
user.cpp: In function ‘void solveQueries()’:
user.cpp:100:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &Q[i].x, &Q[i].y);
^
user.cpp: In function ‘int main()’:
user.cpp:117:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:120:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &anc[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !