Borderou de evaluare (job #2733032)

Utilizator NashikAndrei Feodorov Nashik Data 29 martie 2021 19:03:12
Problema Volum Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type ifstream cin("volum.in"); ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type ofstream cout("volum.out"); ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:13:5: error: 'cin' was not declared in this scope cin>>n>>m; ^~~ main.cpp:46:45: error: no matching function for call to 'max(int, long long int)' sum+=max(0,a.first-v[ii][jj]); ^ In file included from /usr/include/c++/6/deque:60:0, from /usr/include/c++/6/queue:60, from main.cpp:2: /usr/include/c++/6/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^~~ /usr/include/c++/6/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed: main.cpp:46:45: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') sum+=max(0,a.first-v[ii][jj]); ^ In file included from /usr/include/c++/6/deque:60:0, from /usr/include/c++/6/queue:60, from main.cpp:2: /usr/include/c++/6/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed: main.cpp:46:45: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') sum+=max(0,a.first-v[ii][jj]); ^ main.cpp:51:5: error: 'cout' was not declared in this scope cout<<sum; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?