Borderou de evaluare (job #3180646)
Utilizator | Data | 5 decembrie 2023 18:19:43 | |
---|---|---|---|
Problema | Bile | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:9: warning: ISO C++11 requires whitespace after the macro name
5 | #define nmax=250*250+1
| ^~~~
main.cpp:5:13: error: expected primary-expression before '=' token
5 | #define nmax=250*250+1
| ^
main.cpp:9:13: note: in expansion of macro 'nmax'
9 | int pozitia[nmax];
| ^~~~
main.cpp:5:13: error: expected primary-expression before '=' token
5 | #define nmax=250*250+1
| ^
main.cpp:10:9: note: in expansion of macro 'nmax'
10 | int viz[nmax];
| ^~~~
main.cpp:5:13: error: expected primary-expression before '=' token
5 | #define nmax=250*250+1
| ^
main.cpp:11:9: note: in expansion of macro 'nmax'
11 | int sol[nmax+1];
| ^~~~
main.cpp:5:13: error: expected primary-expression before '=' token
5 | #define nmax=250*250+1
| ^
main.cpp:12:13: note: in expansion of macro 'nmax'
12 | int parinte[nmax];
| ^~~~
main.cpp:5:13: error: expected primary-expression before '=' token
5 | #define nmax=250*250+1
| ^
main.cpp:13:16: note: in expansion of macro 'nmax'
13 | int nrelemente[nmax];
| ^~~~
main.cpp: In function 'int find(int)':
main.cpp:18:14: error: 'parinte' was not declared in this scope; did you mean 'printf'?
18 | if (x == parinte[x])
| ^~~~~~~
| printf
main.cpp: In function 'void Union(int, int)':
main.cpp:31:9: error: 'parinte' was not declared in this scope; did you mean 'printf'?
31 | parinte[pary] = parx;
| ^~~~~~~
| printf
main.cpp:32:9: error: 'nrelemente' was not declared in this scope
32 | nrelemente[parx] += nrelemente[pary];
| ^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:47:9: error: 'pozitia' was not declared in this scope
47 | 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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !