Borderou de evaluare (job #2206074)

Utilizator b10nd3Oana Mancu b10nd3 Data 20 mai 2018 23:34:48
Problema Curatenie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:1: error: ‘DEFINE’ does not name a type DEFINE MAX 500001; ^~~~~~ user.cpp:4:15: error: ‘MAX’ was not declared in this scope int result[2][MAX], preOrd[MAX], pozOrd[MAX], n, m; ^~~ user.cpp:4:28: error: ‘MAX’ was not declared in this scope int result[2][MAX], preOrd[MAX], pozOrd[MAX], n, m; ^~~ user.cpp:4:41: error: ‘MAX’ was not declared in this scope int result[2][MAX], preOrd[MAX], pozOrd[MAX], n, m; ^~~ user.cpp: In function ‘int construct(int, int)’: user.cpp:9:15: error: ‘pozOrd’ was not declared in this scope int where=pozOrd[preOrd[++m]]; ^~~~~~ user.cpp:9:22: error: ‘preOrd’ was not declared in this scope int where=pozOrd[preOrd[++m]]; ^~~~~~ user.cpp:11:5: error: ‘result’ was not declared in this scope result[0][preOrd[m]] = construct(left,where-1); ^~~~~~ user.cpp: In function ‘int main()’: user.cpp:24:3: error: ‘pozOrd’ was not declared in this scope pozOrd[x]=i; ^~~~~~ user.cpp:26:27: error: ‘preOrd’ was not declared in this scope for(int i=1;i<=n;i++) in>>preOrd[i]; ^~~~~~ user.cpp:31:9: error: ‘result’ was not declared in this scope out<<result[0][i]<<" "<<result[1][i]<<" \n"; ^~~~~~

Ceva nu functioneaza?