Borderou de evaluare (job #1439454)

Utilizator apostolandreiApostol Andrei Laurentiu apostolandrei Data 22 mai 2015 12:55:46
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:1:2: error: invalid preprocessing directive #includecstdio #includecstdio ^ user.cpp: In function ‘void update(int, int, int)’: user.cpp:9:18: error: lvalue required as left operand of assignment if(a=st && dr=b) ^ user.cpp:14:20: error: expected ‘,’ or ‘;’ before numeric constant int mid=(st+dr)1; ^ user.cpp:15:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a=mid) ^ user.cpp:16:16: error: ‘poz1’ was not declared in this scope update(poz1,st,mid); ^ user.cpp:17:8: error: ‘bmid’ was not declared in this scope if(bmid) ^ user.cpp:18:17: error: ‘poz1’ was not declared in this scope update((poz1)+1,mid+1,dr); ^ user.cpp:19:14: error: ‘poz1’ was not declared in this scope t[poz]=t[poz1]+t[(poz1)+1]; ^ user.cpp: In function ‘int query(int, int, int)’: user.cpp:24:18: error: lvalue required as left operand of assignment if(a=st && dr=b) ^ user.cpp:26:20: error: expected ‘,’ or ‘;’ before numeric constant int mid=(st+dr)1,s=0; ^ user.cpp:27:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a=mid) ^ user.cpp:28:9: error: ‘s’ was not declared in this scope s+=query(poz1,st,mid); ^ user.cpp:28:18: error: ‘poz1’ was not declared in this scope s+=query(poz1,st,mid); ^ user.cpp:29:8: error: ‘bmid’ was not declared in this scope if(bmid) ^ user.cpp:30:9: error: ‘s’ was not declared in this scope s+=query((poz1)+1,mid+1,dr); ^ user.cpp:30:19: error: ‘poz1’ was not declared in this scope s+=query((poz1)+1,mid+1,dr); ^

Ceva nu functioneaza?