Borderou de evaluare (job #2033064)

Utilizator toadehuPuscasu Razvan Stefan toadehu Data 6 octombrie 2017 08:45:01
Problema Schi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int update(int, int, int, int)’: user.cpp:14:18: warning: statement has no effect [-Wunused-value] aint[nod]==1; ^ user.cpp:20:29: error: too few arguments to function ‘int update(int, int, int, int)’ update (st,mij,nod*2); ^ user.cpp:9:5: note: declared here int update (int st , int dr , int pos , int nod) ^ user.cpp:21:23: error: expected primary-expression before ‘,’ token update (mij+1,,dr,nod*2+1); ^ user.cpp: In function ‘int query(int, int, int, int)’: user.cpp:33:5: error: ‘else’ without a previous ‘if’ else ^ user.cpp: In function ‘int main()’: user.cpp:51:18: error: too few arguments to function ‘int update(int, int, int, int)’ update (1,n,1); ^ user.cpp:9:5: note: declared here int update (int st , int dr , int pos , int nod) ^ user.cpp:58:32: error: ‘i’ was not declared in this scope poz[query(1,n,1,v[j])]=i; ^ user.cpp: In function ‘int update(int, int, int, int)’: user.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?