Borderou de evaluare (job #2027550)

Utilizator cicero23catalin viorel cicero23 Data 26 septembrie 2017 11:51:14
Problema Blis Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int caut(int)’: user.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:37:23: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] nr+=a[i]*(1<<k-i); ^ user.cpp:42:32: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] nr=(nr-a[i-k]*(1<<k-1))*2+a[i]; ^ user.cpp:60:47: error: request for member ‘push_back’ in ‘update’, which is of non-class type ‘std::pair<int, int> [100001]’ if(v[poz]<nr&&v[poz+1]>nr) update.push_back(make_pair(nr,poz+1)) ^ user.cpp:61:9: error: expected ‘;’ before ‘}’ token } ^ user.cpp:62:23: error: request for member ‘empty’ in ‘update’, which is of non-class type ‘std::pair<int, int> [100001]’ while(!update.empty()) ^ user.cpp:64:22: error: request for member ‘front’ in ‘update’, which is of non-class type ‘std::pair<int, int> [100001]’ z=update.front(); ^ user.cpp:65:20: error: request for member ‘pop_front’ in ‘update’, which is of non-class type ‘std::pair<int, int> [100001]’ update.pop_front(); ^ user.cpp:66:31: error: ‘q’ was not declared in this scope v[z.second]=min(v[q.second],q.first); ^ user.cpp:48:9: warning: unused variable ‘lmax’ [-Wunused-variable] int lmax=0,poz; ^

Ceva nu functioneaza?