Borderou de evaluare (job #1788006)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 25 octombrie 2016 14:21:57
Problema Biscuiti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void propag(int)’: user.cpp:45:16: error: ‘pw’ was not declared in this scope if (nod >= pw) return; ^ user.cpp:49:22: error: ‘pw’ was not declared in this scope if ((nod << 1) < pw) lazy[nod << 1] += lazy[nod]; ^ user.cpp:52:26: error: ‘pw’ was not declared in this scope if ((nod << 1 | 1) < pw) lazy[nod << 1 | 1] += lazy[nod]; ^ user.cpp: In function ‘int main()’: user.cpp:92:13: error: ‘pw’ was not declared in this scope arb[pw + i].poz = i + 1; ^ user.cpp:96:12: error: too few arguments to function ‘void build(int, int, int)’ build (); ^ user.cpp:25:13: note: declared here inline void build (int st, int dr, int nod) ^ user.cpp:83:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("biscuiti.in", "r", stdin); ^ user.cpp:84:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("biscuiti.out", "w", stdout); ^ user.cpp:87:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ user.cpp:91:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%lld", &lazy[i]); ^

Ceva nu functioneaza?