Borderou de evaluare (job #2042828)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 19 octombrie 2017 11:34:15
Problema Magnet Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int query(int, int, int, int)’: user.cpp:38:16: error: ‘pos1’ was not declared in this scope return pos1[l] + lzy[n]; ^ user.cpp: In function ‘bool solve(int, int&)’: user.cpp:68:18: error: ‘pos2’ was not declared in this scope q1 = pos2[i - 1], q2 = pos2[i], ^ user.cpp:71:13: error: ‘d’ was not declared in this scope if (d < 0) ^ user.cpp:74:13: error: ‘d’ was not declared in this scope if (d >= 2) { ^ user.cpp:80:13: error: ‘d’ was not declared in this scope if (d & 1) { ^ user.cpp:83:21: error: expected primary-expression before ‘)’ token if () ^ user.cpp:84:13: error: expected primary-expression before ‘}’ token } ^ user.cpp:84:13: error: expected ‘;’ before ‘}’ token user.cpp:67:32: warning: unused variable ‘p2’ [-Wunused-variable] int p1 = query(i - 1), p2 = query(i), ^ user.cpp:68:13: warning: unused variable ‘q1’ [-Wunused-variable] q1 = pos2[i - 1], q2 = pos2[i], ^ user.cpp: In function ‘int main()’: user.cpp:100:19: error: ‘pos1’ was not declared in this scope in >> pos1[i]; ^ user.cpp:101:14: error: ‘pos1’ was not declared in this scope sort(pos1 + 1, pos1 + n + 1); ^ user.cpp:104:19: error: ‘pos2’ was not declared in this scope in >> pos2[i]; ^ user.cpp:105:14: error: ‘pos2’ was not declared in this scope sort(pos2 + 1, pos2 + n + 1); ^ user.cpp: In function ‘bool solve(int, int&)’: user.cpp:88:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?