Borderou de evaluare (job #2975003)

Utilizator PHOSSESSEDProsie Radu-Teodor PHOSSESSED Data 5 februarie 2023 07:12:04
Problema Permutari II Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long int grad(std::vector<int>&)': main.cpp:25:50: error: no matching function for call to '__gcd(long long int&, int&)' 25 | ans = (ans * s) / __gcd(ans,s); | ^ In file included from /usr/include/c++/10/algorithm:62, from main.cpp:3: /usr/include/c++/10/bits/stl_algo.h:1219:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)' 1219 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) | ^~~~~ /usr/include/c++/10/bits/stl_algo.h:1219:5: note: template argument deduction/substitution failed: main.cpp:25:50: note: deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int') 25 | ans = (ans * s) / __gcd(ans,s); | ^ Non zero exit status: 1

Ceva nu functioneaza?