#191
Să se determine, pentru fiecare linie a unei matrice, elementul maxim și indicele coloanei pe care se află.
| Problema | MaxMat | Operații I/O |
maxmat.in/maxmat.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64832573 | Utilizator | |
| Fișier | maxmat.cpp | Dimensiune | 383 B |
| Data încărcării | 04 Iunie 2026, 14:11 | Scor/rezultat | Eroare de compilare |
maxmat.cpp:5:48: error: stray ‘\`’ in program 5 | int n,m,i,j,i1,j1,a[602][602],ok,max1,mini,d,k;\` | ^ maxmat.cpp:3:13: error: variable ‘std::ifstream fin’ has initializer but incomplete type 3 | ifstream fin("maxmat.in"); | ^ maxmat.cpp:4:26: error: no matching function for call to ‘std::basic_ostream<char>::basic_ostream(const char [11])’ 4 | ostream fout("maxmat.out") | ^ In file included from /usr/include/c++/13/iostream:41, from maxmat.cpp:1: /usr/include/c++/13/ostream:436:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream(std::basic_iostream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]’ 436 | basic_ostream(basic_iostream<_CharT, _Traits>&) { } | ^~~~~~~~~~~~~ /usr/include/c++/13/ostream:436:21: note: no known conversion for argument 1 from ‘const char [11]’ to ‘std::basic_iostream<char>&’ 436 | basic_ostream(basic_iostream<_CharT, _Traits>&) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:440:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]’ 440 | basic_ostream(basic_ostream&& __rhs) | ^~~~~~~~~~~~~ /usr/include/c++/13/ostream:440:37: note: no known conversion for argument 1 from ‘const char [11]’ to ‘std::basic_ostream<char>&&’ 440 | basic_ostream(basic_ostream&& __rhs) | ~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13/ostream:431:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits<char>]’ 431 | basic_ostream() | ^~~~~~~~~~~~~ /usr/include/c++/13/ostream:431:7: note: candidate expects 0 arguments, 1 provided /usr/include/c++/13/ostream:86:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]’ 86 | basic_ostream(__streambuf_type* __sb) | ^~~~~~~~~~~~~ /usr/include/c++/13/ostream:86:39: note: no known conversion for argument 1 from ‘const char [11]’ to ‘std::basic_ostream<char>::__streambuf_type*’ {aka ‘std::basic_streambuf<char>*’} 86 | basic_ostream(__streambuf_type* __sb) | ~~~~~~~~~~~~~~~~~~^~~~ maxmat.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘int’ 5 | int n,m,i,j,i1,j1,a[602][602],ok,max1,mini,d,k;\` | ^~~ maxmat.cpp: In function ‘int main()’: maxmat.cpp:8:14: error: ‘n’ was not declared in this scope 8 | cin>>n>>m; | ^ maxmat.cpp:8:17: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 8 | cin>>n>>m; | ^ | tm maxmat.cpp:9:13: error: ‘i’ was not declared in this scope 9 | for(i=1; i<=n; i++) | ^ maxmat.cpp:10:21: error: ‘j’ was not declared in this scope 10 | for(j=1; j<=m; j++) | ^ maxmat.cpp:11:30: error: ‘a’ was not declared in this scope 11 | cin>>a[i][j]; | ^ maxmat.cpp:12:14: error: ‘i’ was not declared in this scope 12 | for (i=1;i<=n;i++) | ^ maxmat.cpp:13:14: error: overloaded function with no contextual type information 13 | max=-9999; | ^~~~ maxmat.cpp:14:13: error: ‘j’ was not declared in this scope 14 | for(j=1;j<=m;j++) | ^ maxmat.cpp:15:12: error: ‘a’ was not declared in this scope 15 | if(a[i][j]>max1){ | ^ maxmat.cpp:15:14: error: ‘i’ was not declared in this scope 15 | if(a[i][j]>max1){ | ^ maxmat.cpp:15:20: error: ‘max1’ was not declared in this scope 15 | if(a[i][j]>max1){ | ^~~~ maxmat.cpp:17:13: error: ‘d’ was not declared in this scope 17 | d=j; | ^ maxmat.cpp:19:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’) 19 | fout<<max<<" "<<d; | ~~~~^~~~~ /usr/include/c++/13/ostream:110:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 110 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/13/ostream:110:36: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)’ {aka ‘std::basic_ostream<char>& (*)(std::basic_ostream<char>&)’} 110 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:119:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]’ 119 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/13/ostream:119:32: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)’ {aka ‘std::basic_ios<char>& (*)(std::basic_ios<char>&)’} 119 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:129:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 129 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/13/ostream:129:30: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::ios_base& (*)(std::ios_base&)’ 129 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/13/ostream:168:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 168 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:168:23: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘long int’ 168 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/13/ostream:172:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 172 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:172:32: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘long unsigned int’ 172 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/13/ostream:176:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 176 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/13/ostream:176:23: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘bool’ 176 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/13/ostream:880: /usr/include/c++/13/bits/ostream.tcc:96:5: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]’ 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘short int’ 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/13/ostream:183:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 183 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/13/ostream:183:33: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘short unsigned int’ 183 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/ostream.tcc:110:5: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]’ 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘int’ 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/13/ostream:194:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 194 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/13/ostream:194:31: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ 194 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/13/ostream:203:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 203 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:203:28: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘long long int’ 203 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/13/ostream:207:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 207 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/13/ostream:207:37: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘long long unsigned int’ 207 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/13/ostream:222:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 222 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/13/ostream:222:25: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘double’ 222 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/13/ostream:226:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 226 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/13/ostream:226:24: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘float’ 226 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/13/ostream:234:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 234 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/13/ostream:234:30: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘long double’ 234 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/13/ostream:292:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]’ 292 | operator<<(const void* __p) | ^~~~~~~~ /usr/include/c++/13/ostream:292:30: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const void*’ 292 | operator<<(const void* __p) | ~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/ostream.tcc:124:5: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]’ 124 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/ostream.tcc:125:34: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__streambuf_type*’ {aka ‘std::basic_streambuf<char>*’} 125 | operator<<(__streambuf_type* __sbin) | ~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/13/string:54, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40: /usr/include/c++/13/bits/basic_string.h:4032:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’ 4032 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/13/bits/basic_string.h:4032:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: couldn’t deduce template parameter ‘_Alloc’ 19 | fout<<max<<" "<<d; | ^~~ In file included from /usr/include/c++/13/bits/ios_base.h:46: /usr/include/c++/13/system_error:339:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)’ 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/13/system_error:339:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘const std::error_code&’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:554:5: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT) [with _CharT = char; _Traits = char_traits<char>]’ 554 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/13/ostream:554:62: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘char’ 554 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ~~~~~~~^~~ /usr/include/c++/13/ostream:564:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)’ 564 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/13/ostream:564:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘char’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:570:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)’ 570 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/13/ostream:570:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘char’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:581:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)’ 581 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/13/ostream:581:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘signed char’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:586:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)’ 586 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/13/ostream:586:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘unsigned char’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:645:5: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>]’ 645 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/13/ostream:645:69: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘const char*’ 645 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/13/bits/ostream.tcc:307:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)’ 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/13/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘const char*’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:662:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)’ 662 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/13/ostream:662:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘const char*’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:675:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)’ 675 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) | ^~~~~~~~ /usr/include/c++/13/ostream:675:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘const signed char*’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:680:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)’ 680 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) | ^~~~~~~~ /usr/include/c++/13/ostream:680:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: cannot convert ‘std::max’ (type ‘<unresolved overloaded function type>’) to type ‘const unsigned char*’ 19 | fout<<max<<" "<<d; | ^~~ /usr/include/c++/13/ostream:801:5: note: candidate: ‘template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)’ 801 | operator<<(_Ostream&& __os, const _Tp& __x) | ^~~~~~~~ /usr/include/c++/13/ostream:801:5: note: template argument deduction/substitution failed: maxmat.cpp:19:15: note: couldn’t deduce template parameter ‘_Tp’ 19 | fout<<max<<" "<<d; | ^~~ maxmat.cpp:19:25: error: ‘d’ was not declared in this scope 19 | fout<<max<<" "<<d; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MaxMat 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ă.