Borderou de evaluare (job #1819436)
Utilizator | Data | 30 noiembrie 2016 16:45:50 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int&, int&, int&)’:
user.cpp:128:24: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
dfs(it, cdepth + 1, pos);
^
user.cpp:122:6: error: in passing argument 2 of ‘void dfs(int&, int&, int&)’
void dfs(int& node, int& cdepth, int& pos){
^
user.cpp: In function ‘int main()’:
user.cpp:167:18: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
dfs(1, 0, pos);
^
user.cpp:122:6: error: in passing argument 1 of ‘void dfs(int&, int&, int&)’
void dfs(int& node, int& cdepth, int& pos){
^
user.cpp:160:19: warning: unused variable ‘j’ [-Wunused-variable]
int n,q,i,x,y,j;
^
user.cpp: In member function ‘char Parsare::read_ch()’:
user.cpp:19:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1, NRCHAR, fin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !