Borderou de evaluare (job #1314641)
Utilizator | Data | 12 ianuarie 2015 08:20:31 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Build(int, int, int)’:
user.cpp:34:35: error: expected ‘;’ before ‘)’ token
for(int i = left; i <= right)
^
user.cpp: In function ‘int minW(int, int)’:
user.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int Query(int, int, int, int, int)’:
user.cpp:50:93: error: too few arguments to function ‘int minW(int, int)’
max_y = max( max(arbint[nod].y_max, arbint[nod].x_max_max - minW(arbint[nod].x_max_max)), max(arbint[nod].x_min_max + maxw);
^
user.cpp:43:5: note: declared here
int minW(int st, int dr) {
^
user.cpp:50:125: error: ‘maxw’ was not declared in this scope
max_y = max( max(arbint[nod].y_max, arbint[nod].x_max_max - minW(arbint[nod].x_max_max)), max(arbint[nod].x_min_max + maxw);
^
user.cpp:56:17: error: ‘ans’ was not declared in this scope
if(x > ans)
^
user.cpp:61:17: error: ‘ans’ was not declared in this scope
if(x > ans)
^
user.cpp:65:11: error: ‘ans’ was not declared in this scope
return ans;
^
user.cpp:48:19: warning: unused variable ‘min_z’ [-Wunused-variable]
int max_y = 0, min_z = - (1 << 24);
^
user.cpp: In function ‘int main()’:
user.cpp:71:12: error: ‘N’ was not declared in this scope
cin >> N;
^
user.cpp:76:12: error: ‘M’ was not declared in this scope
cin >> M;
^
user.cpp:78:14: error: ‘x’ was not declared in this scope
cin >> x >> y;
^
user.cpp:78:19: error: ‘y’ was not declared in this scope
cin >> x >> y;
^
user.cpp: In function ‘int Query(int, int, int, int, int)’:
user.cpp:66:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !