Borderou de evaluare (job #1700377)

Utilizator VicktorVictor Teodor Stoian Vicktor Data 10 mai 2016 13:39:35
Problema Biscuiti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Update1(int, int, int)’: user.cpp:17:18: error: ‘val’ was not declared in this scope arb[nod].val=val,arb[nod].poz=poz; ^ user.cpp:17:35: error: ‘poz’ was not declared in this scope arb[nod].val=val,arb[nod].poz=poz; ^ user.cpp:20:8: error: ‘poz’ was not declared in this scope if(poz<=mid) ^ user.cpp:21:27: error: ‘Update’ was not declared in this scope Update(nod*2,s,mid); ^ user.cpp:23:31: error: ‘Update’ was not declared in this scope Update(nod*2+1,mid+1,d); ^ user.cpp:25:13: error: no match for ‘operator=’ (operand types are ‘<anonymous struct>’ and ‘const long long int’) arb[nod]=min(arb[nod*2].val,arb[nod*2+1].val); ^ user.cpp:25:13: note: candidates are: user.cpp:9:1: note: <anonymous struct>&<anonymous struct>::operator=(const<anonymous struct>&) { ^ user.cpp:9:1: note: no known conversion for argument 1 from ‘const long long int’ to ‘const<anonymous struct>&’ user.cpp:9:1: note: <anonymous struct>&<anonymous struct>::operator=(<anonymous struct>&&) user.cpp:9:1: note: no known conversion for argument 1 from ‘const long long int’ to ‘<anonymous struct>&&’ user.cpp: In function ‘void Update(int, int, int)’: user.cpp:35:12: error: ‘poz’ was not declared in this scope if(poz<=mid) ^ user.cpp:40:13: error: ‘Lazy’ was not declared in this scope Lazy[nod*2]+=t; ^ user.cpp:40:26: error: ‘t’ was not declared in this scope Lazy[nod*2]+=t; ^ user.cpp:45:12: error: ‘Lazy’ was not declared in this scope if(Lazy[nod*2] && arb[nod*2].val>0) ^ user.cpp:51:12: error: ‘Lazy’ was not declared in this scope if(Lazy[nod*2+1] && arb[nod*2+1].val>0) ^ user.cpp: In function ‘int main()’: user.cpp:68:17: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:71:21: error: ‘x’ was not declared in this scope scanf("%d",&x); ^ user.cpp:72:9: error: ‘suminit’ was not declared in this scope

Ceva nu functioneaza?