#1148
ExistaImpareDivImp
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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13164749 | Utilizator | |
Fișier | existaimparedivimp.cpp | Dimensiune | 311 B |
Data încărcării | 11 Ianuarie 2019, 20:40 | Scor / rezultat | Eroare de compilare |
existaimparedivimp.cpp:5:1: error: stray '\302' in program unsigned n,v[101],OK=0,i; ^ existaimparedivimp.cpp:5:1: error: stray '\240' in program existaimparedivimp.cpp:5:1: error: stray '\302' in program existaimparedivimp.cpp:5:1: error: stray '\240' in program existaimparedivimp.cpp:5:1: error: stray '\302' in program existaimparedivimp.cpp:5:1: error: stray '\240' in program existaimparedivimp.cpp:6:1: error: stray '\302' in program cin>>n; ^ existaimparedivimp.cpp:6:1: error: stray '\240' in program existaimparedivimp.cpp:6:1: error: stray '\302' in program existaimparedivimp.cpp:6:1: error: stray '\240' in program existaimparedivimp.cpp:6:1: error: stray '\302' in program existaimparedivimp.cpp:6:1: error: stray '\240' in program existaimparedivimp.cpp:7:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ existaimparedivimp.cpp:7:1: error: stray '\240' in program existaimparedivimp.cpp:7:1: error: stray '\302' in program existaimparedivimp.cpp:7:1: error: stray '\240' in program existaimparedivimp.cpp:7:1: error: stray '\302' in program existaimparedivimp.cpp:7:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program { ^ existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:8:1: error: stray '\302' in program existaimparedivimp.cpp:8:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program cin>>v[i]; ^ existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:9:1: error: stray '\302' in program existaimparedivimp.cpp:9:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program if(v[i]%2) OK=1; ^ existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:10:1: error: stray '\302' in program existaimparedivimp.cpp:10:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program } ^ existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:11:1: error: stray '\302' in program existaimparedivimp.cpp:11:1: error: stray '\240' in program existaimparedivimp.cpp:12:1: error: stray '\302' in program if(OK) cout<<"DA"; ^ existaimparedivimp.cpp:12:1: error: stray '\240' in program existaimparedivimp.cpp:12:1: error: stray '\302' in program existaimparedivimp.cpp:12:1: error: stray '\240' in program existaimparedivimp.cpp:12:1: error: stray '\302' in program existaimparedivimp.cpp:12:1: error: stray '\240' in program existaimparedivimp.cpp:13:1: error: stray '\302' in program else cout<<"NU"; ^ existaimparedivimp.cpp:13:1: error: stray '\240' in program existaimparedivimp.cpp:13:1: error: stray '\302' in program existaimparedivimp.cpp:13:1: error: stray '\240' in program existaimparedivimp.cpp:13:1: error: stray '\302' in program existaimparedivimp.cpp:13:1: error: stray '\240' in program existaimparedivimp.cpp:14:1: error: stray '\302' in program return 0; ^ existaimparedivimp.cpp:14:1: error: stray '\240' in program existaimparedivimp.cpp:14:1: error: stray '\302' in program existaimparedivimp.cpp:14:1: error: stray '\240' in program existaimparedivimp.cpp:14:1: error: stray '\302' in program existaimparedivimp.cpp:14:1: error: stray '\240' in program
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ă.