#1148
Se dă un şir cu n elemente, numere naturale. Folosind metoda Divide et Impera să se verifice dacă în şir există elemente impare.
| Problema | ExistaImpareDivImp | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63658209 | Utilizator | |
| Fișier | existaimparedivimp.cpp | Dimensiune | 483 B |
| Data încărcării | 13 Martie 2026, 08:12 | Scor/rezultat | Eroare de compilare |
existaimparedivimp.cpp:3:9: error: 'v' was not declared in this scope int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:3:11: error: expected primary-expression before ']' token int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:3:13: error: expected primary-expression before 'int' int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:3:20: error: expected primary-expression before 'int' int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:3:27: error: expected primary-expression before 'int' int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:3:34: error: expression list treated as compound expression in initializer [-fpermissive] int imp(v[],int st,int dr,int mij) ^ existaimparedivimp.cpp:4:1: error: expected ',' or ';' before '{' token { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ExistaImpareDivImp face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.