Problema | Anagrame1 | Operații I/O |
anagrame1.in /anagrame1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53999489 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 1.04 KB |
Data încărcării | 17 Noiembrie 2024, 14:24 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp: In function 'void citire()': anagrame1.cpp:8:21: error: no matching function for call to 'std::basic_istream<char>::getline(int [9], int)' cin.getline(s, 9); ^ anagrame1.cpp:8:21: note: candidates are: In file included from /usr/include/c++/4.8/iostream:40:0, from anagrame1.cpp:1: /usr/include/c++/4.8/istream:618:5: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize, std::basic_istream<_CharT, _Traits>::char_type) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::char_type = char; std::streamsize = int] basic_istream<char>:: ^ /usr/include/c++/4.8/istream:618:5: note: candidate expects 3 arguments, 2 provided /usr/include/c++/4.8/istream:427:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::char_type = char; std::streamsize = int] getline(char_type* __s, streamsize __n) ^ /usr/include/c++/4.8/istream:427:7: note: no known conversion for argument 1 from 'int [9]' to 'std::basic_istream<char>::char_type* {aka char*}' anagrame1.cpp:9:17: error: cannot convert 'int*' to 'const char*' for argument '1' to 'size_t strlen(const char*)' n = strlen(s) ^ anagrame1.cpp:10:1: error: expected ';' before '}' token } ^ anagrame1.cpp: In function 'void sort()': anagrame1.cpp:22:28: error: 'v' was not declared in this scope char aux = v[i]; ^ anagrame1.cpp: In function 'int valid(int)': anagrame1.cpp:33:14: error: expected unqualified-id before '=' token for (int = 0; i < k; i++) { ^ anagrame1.cpp:33:14: error: expected ';' before '=' token anagrame1.cpp:33:14: error: expected primary-expression before '=' token anagrame1.cpp:33:19: error: 'i' was not declared in this scope for (int = 0; i < k; i++) { ^ anagrame1.cpp:33:24: error: expected ')' before ';' token for (int = 0; i < k; i++) { ^ anagrame1.cpp:33:26: error: 'i' was not declared in this scope for (int = 0; i < k; i++) { ^ anagrame1.cpp:33:29: error: expected ';' before ')' token for (int = 0; i < k; i++) { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Anagrame1 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ă.