Borderou de evaluare (job #3206014)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 21 februarie 2024 13:27:01
Problema Pufarina 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:9:51: error: no matching function for call to '__gcd(int&, double)' 9 | for(F>>n,p=0;n--;F>>a,F.get(),F>>b,p=__gcd(p,1e3*a+b)); | ~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/algorithm:61, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:65, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_algo.h:1182:5: note: candidate: 'template<class _EuclideanRingElement> constexpr _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)' 1182 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) | ^~~~~ /usr/include/c++/12.2.1/bits/stl_algo.h:1182:5: note: template argument deduction/substitution failed: main.cpp:9:51: note: deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'double') 9 | for(F>>n,p=0;n--;F>>a,F.get(),F>>b,p=__gcd(p,1e3*a+b)); | ~~~~~^~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?