Borderou de evaluare (job #2479204)

Utilizator minecraft3Vintila Valentin Ioan minecraft3 Data 23 octombrie 2019 15:31:04
Problema Ruksak Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:6:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation] #define FOR1(a,b) for(int a = 1; a <= b; ++a) ^ main.cpp:24:5: note: in expansion of macro 'FOR1' FOR1(i, g) v[i] = -1; v[0] = 0; ^~~~ main.cpp:24:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' FOR1(i, g) v[i] = -1; v[0] = 0; ^ main.cpp:26:51: error: no matching function for call to 'min(int, long long int)' FOR1(i, g) FOR(k, min((int)vp[i].size(), g/i+1)) FORD(j, g-i+1) { ^ main.cpp:5:37: note: in definition of macro 'FOR' #define FOR(a,b) for(int a = 0; a < b; ++a) ^ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^~~ /usr/include/c++/6/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: main.cpp:26:51: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') FOR1(i, g) FOR(k, min((int)vp[i].size(), g/i+1)) FORD(j, g-i+1) { ^ main.cpp:5:37: note: in definition of macro 'FOR' #define FOR(a,b) for(int a = 0; a < b; ++a) ^ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: main.cpp:26:51: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int') FOR1(i, g) FOR(k, min((int)vp[i].size(), g/i+1)) FORD(j, g-i+1) { ^ main.cpp:5:37: note: in definition of macro 'FOR' Non zero exit status: 1

Ceva nu functioneaza?