Borderou de evaluare (job #2294148)
Utilizator | Data | 1 decembrie 2018 22:53:53 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int DFS(int, int)':
main.cpp:25:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < tati[nod].size(); i++)
~~^~~~~~~~~~~~~~~~~~
main.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void creez_tati(int, int)':
main.cpp:66:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graph[nod].size(); i++) {
~~^~~~~~~~~~~~~~~~~~~
main.cpp:68:45: error: too many arguments to function 'void creez_tati(int, int)'
creez_tati(graph[nod][i], nod, graph);
^
main.cpp:60:6: note: declared here
void creez_tati(int nod, int anterior) {
^~~~~~~~~~
main.cpp: In function 'void lca(const std::vector<std::vector<int> >&, const std::vector<std::pair<int, int> >&)':
main.cpp:78:25: error: too many arguments to function 'void creez_tati(int, int)'
creez_tati(1, 0, graph);
^
main.cpp:60:6: note: declared here
void creez_tati(int nod, int anterior) {
^~~~~~~~~~
main.cpp:81:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < graph.size(); i++){
~~^~~~~~~~~~~~~~
main.cpp:85:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < queries.size(); i++) {
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:99:12: warning: unused variable 'y' [-Wunused-variable]
int x, y;
^
main.cpp: In function 'int query(int, int)':
main.cpp:58:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !