Borderou de evaluare (job #2226233)
Utilizator | Data | 29 iulie 2018 22:21:22 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void delete_node(node*&, int)’:
user.cpp:96:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(t = n->r ; t->l != NIL; t = t->l);
^~~
user.cpp:97:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
n->key = t->key;
^
user.cpp: At global scope:
user.cpp:146:11: error: redefinition of ‘std::ifstream f’
ifstream f("hashuri.in");
^
user.cpp:4:10: note: ‘std::ifstream f’ previously declared here
ifstream f("hashuri.in");
^
user.cpp:147:11: error: redefinition of ‘std::ofstream g’
ofstream g("hashuri.out");
^
user.cpp:5:10: note: ‘std::ofstream g’ previously declared here
ofstream g("hashuri.out");
^
user.cpp:152:8: error: redefinition of ‘struct node’
struct node
^~~~
user.cpp:10:8: error: previous definition of ‘struct node’
struct node
^~~~
user.cpp:157:4: error: conflicting declaration ‘int* Root’
} *Root, *NIL;
^~~~
user.cpp:15:4: note: previous declaration as ‘node* Root’
} *Root, *NIL;
^~~~
user.cpp:157:11: error: conflicting declaration ‘int* NIL’
} *Root, *NIL;
^~~
user.cpp:15:11: note: previous declaration as ‘node* NIL’
} *Root, *NIL;
^~~
user.cpp: In function ‘void Initize_AVL()’:
user.cpp:159:6: error: redefinition of ‘void Initize_AVL()’
void Initize_AVL()
^~~~~~~~~~~
user.cpp:17:6: note: ‘void Initize_AVL()’ previously defined here
void Initize_AVL()
^~~~~~~~~~~
user.cpp: In function ‘node* balance(node*)’:
user.cpp:189:34: error: call of overloaded ‘rotleft(node*&)’ is ambiguous
n->l = rotleft( n->l );
^
user.cpp:25:6: note: candidate: void rotleft(node*&)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !