#453
distincte1
Se citesc de la tastatură trei numere naturale. Să se determine numărul de valori distincte.
Problema | distincte1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58568218 | Utilizator | |
Fișier | distincte1.cpp | Dimensiune | 237 B |
Data încărcării | 20 Iunie 2025, 18:29 | Scor / rezultat | Eroare de compilare |
distincte1.cpp:2:7: error: expected nested-name-specifier before 'manespace' using manespace std; ^ distincte1.cpp:2:7: error: 'manespace' has not been declared distincte1.cpp:2:17: error: expected ';' before 'std' using manespace std; ^ distincte1.cpp:2:17: error: 'std' does not name a type distincte1.cpp: In function 'int main()': distincte1.cpp:8:5: error: 'cin' was not declared in this scope cin >> a >> b >> c; ^ distincte1.cpp:8:5: note: suggested alternative: In file included from distincte1.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ distincte1.cpp:11:9: error: 'cout' was not declared in this scope cout << a; ^ distincte1.cpp:11:9: note: suggested alternative: In file included from distincte1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ distincte1.cpp:13:9: error: 'cout' was not declared in this scope cout << b; ^ distincte1.cpp:13:9: note: suggested alternative: In file included from distincte1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ distincte1.cpp:15:9: error: 'cout' was not declared in this scope cout << c; ^ distincte1.cpp:15:9: note: suggested alternative: In file included from distincte1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema distincte1 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ă.