#893
Cuvinte0
Se dă un șir de caractere format din cuvinte, separate prin spații. Cuvintele conțin doar litere mici ale alfabetului englez. Afișați, în ordine lexicografică, cuvintele distincte din șir.
Problema | Cuvinte0 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54623762 | Utilizator | |
Fișier | cuvinte0.cpp | Dimensiune | 1.01 KB |
Data încărcării | 03 Decembrie 2024, 22:25 | Scor / rezultat | Eroare de compilare |
cuvinte0.cpp:8:20: error: stray '#' in program maxi = #include <iostream> ^ cuvinte0.cpp: In function 'void cifminmax(int, int&, int&)': cuvinte0.cpp:8:21: error: 'include' was not declared in this scope maxi = #include <iostream> ^ cuvinte0.cpp:8:30: error: 'iostream' was not declared in this scope maxi = #include <iostream> ^ In file included from /usr/include/c++/4.8/string:38:0, from cuvinte0.cpp:9: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:184:1: error: expected primary-expression before 'namespace' namespace std ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:184:1: error: expected ';' before 'namespace' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/functexcept.h:42:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/functexcept.h:42:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/functexcept.h:42:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/functexcept.h:42:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/functexcept.h:42:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:68:21: error: expected '=' before '__attribute__' namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/cpp_type_traits.h:68:21: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:68:21: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:68:21: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:68:21: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:78:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/cpp_type_traits.h:78:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:78:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:78:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/cpp_type_traits.h:78:15: error: expected ';' before '__attribute__' In file included from /usr/include/c++/4.8/new:40:0, from /usr/include/c++/4.8/ext/new_allocator.h:33, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/string:41, from cuvinte0.cpp:9: /usr/include/c++/4.8/exception:35:37: error: expected '}' before end of line #pragma GCC visibility push(default) ^ /usr/include/c++/4.8/exception:35:37: error: expected '}' before end of line /usr/include/c++/4.8/exception: At global scope: /usr/include/c++/4.8/exception:35:37: error: expected declaration before end of line
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cuvinte0 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ă.