#1192
Arhitectura2
Pentru un sir de n
numere naturale reprezentand inaltimile unor cladiri , sa se raspunda la o intrebare pentru fiecare element .
Problema | Arhitectura2 | Operații I/O |
arhitectura2.in /arhitectura2.out
|
---|---|---|---|
Limita timp | 1.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #46071740 | Utilizator | |
Fișier | arhitectura2.cpp | Dimensiune | 619 B |
Data încărcării | 01 Noiembrie 2023, 16:40 | Scor / rezultat | Eroare de compilare |
arhitectura2.cpp:6:30: error: no matching function for call to 'std::basic_istream<char>::basic_istream(const char [16])' istream fin("arhitectura2.in"); ^ arhitectura2.cpp:6:30: note: candidates are: In file included from /usr/include/c++/4.8/iostream:40:0, from arhitectura2.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 [16]' to 'std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}' arhitectura2.cpp:7:32: error: no matching function for call to 'std::basic_ostream<char>::basic_ostream(const char [17])' ostream fout("arhitectura2.out"); ^ arhitectura2.cpp:7:32: note: candidates are: In file included from /usr/include/c++/4.8/iostream:39:0, from arhitectura2.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 [17]' to 'std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Arhitectura2 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ă.