#280
PalMax
Se dau mai multe numere naturale. Determinaţi cel mai mare număr palindrom aflat printre numerele date şi de câte ori apare.
Problema | PalMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50864002 | Utilizator | |
Fișier | palmax.cpp | Dimensiune | 782 B |
Data încărcării | 10 Mai 2024, 16:49 | Scor / rezultat | Eroare de compilare |
palmax.cpp:10:7: error: expected nested-name-specifier before 'namesapce' using namesapce std; ^ palmax.cpp:10:7: error: 'namesapce' has not been declared palmax.cpp:10:17: error: expected ';' before 'std' using namesapce std; ^ palmax.cpp:10:17: error: 'std' does not name a type palmax.cpp: In function 'int main()': palmax.cpp:14:5: error: 'cin' was not declared in this scope cin>>x; ^ palmax.cpp:14:5: note: suggested alternative: In file included from palmax.cpp:9:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ palmax.cpp:23:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(cop==p) ^ palmax.cpp:29:5: error: 'cout' was not declared in this scope cout<<max; ^ palmax.cpp:29:5: note: suggested alternative: In file included from palmax.cpp:9:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ palmax.cpp:13:9: warning: unused variable 'n' [-Wunused-variable] int n, x, p, k, max, i, cop; ^ palmax.cpp:13:26: warning: unused variable 'i' [-Wunused-variable] int n, x, p, k, max, i, cop; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PalMax 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ă.