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 | #53596053 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 1.22 KB |
Data încărcării | 06 Noiembrie 2024, 08:47 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp: In function 'void afisare()': anagrame1.cpp:36:28: error: expected ']' before ';' token fout<<cuvant[sol[i]; ^ anagrame1.cpp: In function 'void bkt(int)': anagrame1.cpp:49:5: error: expected ')' before '{' token { ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:62:24: error: expected ')' before 'sizeof' fin.getline(cuvant sizeof(cuvant)); ^ anagrame1.cpp:62:38: error: no matching function for call to 'std::basic_ifstream<char>::getline(char [10])' fin.getline(cuvant sizeof(cuvant)); ^ anagrame1.cpp:62:38: 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, 1 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: candidate expects 2 arguments, 1 provided anagrame1.cpp:63:27: error: 'strlen' was not declared in this scope lung_cuv=strlen(cuvant); ^
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ă.