#289
ExistaImpare
Se dă un şir cu n
elemente, numere naturale. Să se verifice dacă în şir există elemente impare.
Problema | ExistaImpare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #15090560 | Utilizator | |
Fișier | existaimpare.cpp | Dimensiune | 231 B |
Data încărcării | 31 Martie 2019, 21:14 | Scor / rezultat | Eroare de compilare |
existaimpare.cpp:2:7: error: expected nested-name-specifier before 'namspace' using namspace std; ^ existaimpare.cpp:2:7: error: 'namspace' has not been declared existaimpare.cpp:2:16: error: expected ';' before 'std' using namspace std; ^ existaimpare.cpp:2:16: error: 'std' does not name a type existaimpare.cpp: In function 'int main()': existaimpare.cpp:4:12: error: expected unqualified-id before ',' token {int n,x,i,,v[1001],k; ^ existaimpare.cpp:5:3: error: 'cin' was not declared in this scope cin>>n; k=0; ^ existaimpare.cpp:5:3: note: suggested alternative: In file included from existaimpare.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ existaimpare.cpp:12:7: error: 'cout' was not declared in this scope cout<<"DA"; ^ existaimpare.cpp:12:7: note: suggested alternative: In file included from existaimpare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ existaimpare.cpp:13:8: error: 'cout' was not declared in this scope else cout<<"NU"; ^ existaimpare.cpp:13:8: note: suggested alternative: In file included from existaimpare.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ existaimpare.cpp:14:12: error: expected '}' at end of input return 0;} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ExistaImpare 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ă.