#816
Sticle
Determinați câte sticle de x
litri cu apă trebuie deschise pentru a umple un vas de y
litri.
Problema | Sticle | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55061065 | Utilizator | |
Fișier | sticle.cpp | Dimensiune | 204 B |
Data încărcării | 19 Decembrie 2024, 14:36 | Scor / rezultat | Eroare de compilare |
sticle.cpp:2:7: error: expected nested-name-specifier before 'namepace' using namepace std; ^ sticle.cpp:2:7: error: 'namepace' has not been declared sticle.cpp:2:16: error: expected ';' before 'std' using namepace std; ^ sticle.cpp:2:16: error: 'std' does not name a type sticle.cpp: In function 'int main()': sticle.cpp:6:5: error: 'cin' was not declared in this scope cin>>x; ^ sticle.cpp:6:5: note: suggested alternative: In file included from sticle.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ sticle.cpp:9:9: error: 'cout' was not declared in this scope cout<<y/x+1<,""; ^ sticle.cpp:9:9: note: suggested alternative: In file included from sticle.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sticle.cpp:9:21: error: expected primary-expression before ',' token cout<<y/x+1<,""; ^ sticle.cpp:11:9: error: 'cout' was not declared in this scope cout<<y/x<,""; ^ sticle.cpp:11:9: note: suggested alternative: In file included from sticle.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sticle.cpp:11:19: error: expected primary-expression before ',' token cout<<y/x<,""; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sticle 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ă.