#1444
Memory001
Să se afle indicele coloanei dintr-o matrice pentru care suma elementelor este minimă.
folclor
Problema | Memory001 | Operații I/O |
memory001.in /memory001.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0 MB
|
Id soluție | #49126801 | Utilizator | |
Fișier | memory001.cpp | Dimensiune | 460 B |
Data încărcării | 16 Februarie 2024, 08:31 | Scor / rezultat | Eroare de compilare |
memory001.cpp:4:27: error: no matching function for call to 'std::basic_istream<char>::basic_istream(const char [13])' istream fin("memory001.in"); ^ memory001.cpp:4:27: note: candidates are: In file included from /usr/include/c++/4.8/iostream:40:0, from memory001.cpp:1: /usr/include/c++/4.8/istream:606:7: note: std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits<char>] basic_istream() ^ /usr/include/c++/4.8/istream:606:7: note: candidate expects 0 arguments, 1 provided /usr/include/c++/4.8/istream:93:7: note: std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>] basic_istream(__streambuf_type* __sb) ^ /usr/include/c++/4.8/istream:93:7: note: no known conversion for argument 1 from 'const char [13]' to 'std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}' memory001.cpp:5:29: error: no matching function for call to 'std::basic_ostream<char>::basic_ostream(const char [14])' ostream fout("memory001.out"); ^ memory001.cpp:5:29: note: candidates are: In file included from /usr/include/c++/4.8/iostream:39:0, from memory001.cpp:1: /usr/include/c++/4.8/ostream:384:7: note: std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits<char>] basic_ostream() ^ /usr/include/c++/4.8/ostream:384:7: note: candidate expects 0 arguments, 1 provided /usr/include/c++/4.8/ostream:84:7: note: std::basic_ostream<_CharT, _Traits>::basic_ostream(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>] basic_ostream(__streambuf_type* __sb) ^ /usr/include/c++/4.8/ostream:84:7: note: no known conversion for argument 1 from 'const char [14]' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory001 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ă.