#3945
fazan_max
Se dau n
cuvinte distincte formate din litere mici. Afișați șirul format dintr-un număr maxim de cuvinte distincte dintre cele date, care respectă regula jocului Fazan
.
Problema | fazan_max | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49803597 | Utilizator | |
Fișier | fazan_max.cpp | Dimensiune | 956 B |
Data încărcării | 15 Martie 2024, 11:47 | Scor / rezultat | Eroare de compilare |
fazan_max.cpp: In function 'int main()': fazan_max.cpp:35:5: error: 'cin' was not declared in this scope cin>>n; ^ fazan_max.cpp:35:5: note: suggested alternative: In file included from fazan_max.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ fazan_max.cpp:41:22: error: 'swap' was not declared in this scope swap (a[i], a[j]); ^ fazan_max.cpp:41:22: note: suggested alternatives: In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from fazan_max.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2717:5: note: 'std::swap' swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, ^ In file included from /usr/include/c++/4.8/exception:152:0, from /usr/include/c++/4.8/ios:39, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from fazan_max.cpp:1: /usr/include/c++/4.8/bits/exception_ptr.h:160:5: note: 'std::__exception_ptr::swap' swap(exception_ptr& __lhs, exception_ptr& __rhs) ^ fazan_max.cpp:44:7: error: 'cout' was not declared in this scope cout<<a[sol[i]]<< " "; ^ fazan_max.cpp:44:7: note: suggested alternative: In file included from fazan_max.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 fazan_max 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ă.