#1311
Se citește de la tastatură un număr natural de 3 cifre. Să se stabilească dacă are toate cifrele egale.
| Problema | CifEgale | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #49855327 | Utilizator | |
| Fișier | cifegale.cpp | Dimensiune | 234 B |
| Data încărcării | 17 Martie 2024, 22:31 | Scor/rezultat | Eroare de compilare |
cifegale.cpp:2:7: error: expected nested-name-specifier before 'mainspace' using mainspace std; ^ cifegale.cpp:2:7: error: 'mainspace' has not been declared cifegale.cpp:2:17: error: expected ';' before 'std' using mainspace std; ^ cifegale.cpp:2:17: error: 'std' does not name a type cifegale.cpp: In function 'int main()': cifegale.cpp:6:5: error: 'cin' was not declared in this scope cin>>a; ^ cifegale.cpp:6:5: note: suggested alternative: In file included from cifegale.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ cifegale.cpp:10:9: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(x==z==y) ^ cifegale.cpp:11:5: error: 'cout' was not declared in this scope cout<<"da"; ^ cifegale.cpp:11:5: note: suggested alternative: In file included from cifegale.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cifegale.cpp:13:5: error: 'cout' was not declared in this scope cout<<"nu"; ^ cifegale.cpp:13:5: note: suggested alternative: In file included from cifegale.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 CifEgale 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ă.