#1273
| Problema | uciv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64147276 | Utilizator | |
| Fișier | uciv.cpp | Dimensiune | 146 B |
| Data încărcării | 20 Aprilie 2026, 13:31 | Scor/rezultat | Eroare de compilare |
uciv.cpp: In function ‘int main()’: uciv.cpp:5:5: error: ‘cin’ was not declared in this scope 5 | cin >> a >> b; | ^~~ uciv.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | using namespace std; uciv.cpp:7:5: error: ‘cout’ was not declared in this scope 7 | cout << u << endl; | ^~~~ uciv.cpp:7:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? uciv.cpp:7:18: error: ‘endl’ was not declared in this scope 7 | cout << u << endl; | ^~~~ uciv.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’? +++ |+#include <ostream> 1 | using namespace std;
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema uciv 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ă.