Borderou de evaluare (job #2009273)

Utilizator MaligMamaliga cu smantana Malig Data 9 august 2017 09:04:52
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:72:12: warning: ISO C99 requires whitespace after the macro name [enabled by default] #define brk; if (x1 > x2 || y1 > y2) {return;} ^ user.cpp:15:17: error: size of array ‘a’ is too large int a[NMax][NMax],hBit[NMax][sqMax],vBit[sqMax][NMax],sqBit[sqMax][sqMax] ^ user.cpp:16:5: error: expected initializer before ‘hAdd’ hAdd[NMax][sqMax],vAdd[sqMax][NMax],sqAdd[sqMax][sqMax]; ^ user.cpp: In function ‘int main()’: user.cpp:38:17: error: ‘a’ was not declared in this scope in>>a[i][j]; ^ user.cpp:44:13: error: ‘sqBit’ was not declared in this scope sqBit[idx][jdx] = max(sqBit[idx][jdx],a[i][j]); ^ user.cpp: In function ‘int query(int, int, int, int)’: user.cpp:72:39: error: return-statement with no value, in function returning ‘int’ [-fpermissive] #define brk; if (x1 > x2 || y1 > y2) {return;} ^ user.cpp:79:5: note: in expansion of macro ‘brk’ brk; ^ user.cpp:83:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:83:1: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘int hQuery(int, int, int, int)’: user.cpp:72:39: error: return-statement with no value, in function returning ‘int’ [-fpermissive] #define brk; if (x1 > x2 || y1 > y2) {return;} ^ user.cpp:86:5: note: in expansion of macro ‘brk’ brk; ^ user.cpp:90:36: error: ‘root’ was not declared in this scope for (int j=y1;j <= y2;j += root) { ^ user.cpp:94:23: error: ‘sqBit’ was not declared in this scope int add = sqBit[idx][jdx]; ^ user.cpp:94:34: error: ‘jdx’ was not declared in this scope int add = sqBit[idx][jdx]; ^ user.cpp: In function ‘int vQuery(int, int, int, int)’: user.cpp:72:39: error: return-statement with no value, in function returning ‘int’ [-fpermissive] #define brk; if (x1 > x2 || y1 > y2) {return;} ^ user.cpp:103:5: note: in expansion of macro ‘brk’ brk; ^

Ceva nu functioneaza?