Borderou de evaluare (job #2527423)

Utilizator mariamirabella2Bucur-Sabau Maria-Mirabela mariamirabella2 Data 20 ianuarie 2020 12:25:41
Problema Indep Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:17:24: error: no matching function for call to '__gcd(int&, long long int&)' d[__gcd(j,x)]+=d[j]; ^ In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:2: /usr/include/c++/6/bits/stl_algo.h:1229:5: note: candidate: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement) __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) ^~~~~ /usr/include/c++/6/bits/stl_algo.h:1229:5: note: template argument deduction/substitution failed: main.cpp:17:24: note: deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long long int') d[__gcd(j,x)]+=d[j]; ^ Non zero exit status: 1

Ceva nu functioneaza?