Borderou de evaluare (job #3297078)
Utilizator | Data | 20 mai 2025 22:33:41 | |
---|---|---|---|
Problema | Plantatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:19:5: error: redefinition of 'int plantatie [500][500][9]'
19 | int plantatie[500][500][9];
| ^~~~~~~~~
main.cpp:9:5: note: 'int plantatie [500][500][9]' previously declared here
9 | int plantatie[500][500][9];
| ^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:39:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
39 | int offs = 1 << p - 1;
| ~~^~~
main.cpp:40:48: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
40 | for(int i = 0; i < n + (1 << p - 1); i++) {
| ~~^~~
main.cpp:41:56: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
41 | for(int j = 0; j < n + (1 << p - 1); j++) {
| ~~^~~
main.cpp:43:91: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
43 | max(getAt(i, j, p-1), getAt(i + offs, j + (1 << p - 1), p - 1)),
| ~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !