Borderou de evaluare (job #3180645)

Utilizator bobic.teona20Bobic Teona-Christiana bobic.teona20 Data 5 decembrie 2023 18:19:01
Problema Bile Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:9: warning: ISO C++11 requires whitespace after the macro name 6 | #define nmax=250*250+1 | ^~~~ main.cpp:6:13: error: expected primary-expression before '=' token 6 | #define nmax=250*250+1 | ^ main.cpp:7:13: note: in expansion of macro 'nmax' 7 | int pozitia[nmax]; | ^~~~ main.cpp:6:13: error: expected primary-expression before '=' token 6 | #define nmax=250*250+1 | ^ main.cpp:8:9: note: in expansion of macro 'nmax' 8 | int viz[nmax]; | ^~~~ main.cpp:6:13: error: expected primary-expression before '=' token 6 | #define nmax=250*250+1 | ^ main.cpp:9:9: note: in expansion of macro 'nmax' 9 | int sol[nmax+1]; | ^~~~ main.cpp:6:13: error: expected primary-expression before '=' token 6 | #define nmax=250*250+1 | ^ main.cpp:10:13: note: in expansion of macro 'nmax' 10 | int parinte[nmax]; | ^~~~ main.cpp:6:13: error: expected primary-expression before '=' token 6 | #define nmax=250*250+1 | ^ main.cpp:11:16: note: in expansion of macro 'nmax' 11 | int nrelemente[nmax]; | ^~~~ main.cpp: In function 'int find(int)': main.cpp:16:14: error: 'parinte' was not declared in this scope; did you mean 'printf'? 16 | if (x == parinte[x]) | ^~~~~~~ | printf main.cpp: In function 'void Union(int, int)': main.cpp:29:9: error: 'parinte' was not declared in this scope; did you mean 'printf'? 29 | parinte[pary] = parx; | ^~~~~~~ | printf main.cpp:30:9: error: 'nrelemente' was not declared in this scope 30 | nrelemente[parx] += nrelemente[pary]; | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:45:9: error: 'pozitia' was not declared in this scope 45 | pozitia[i] = (x - 1) * n + y; //pozitia in tabla va fi cea fireasca de la stg la dr | ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?