Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_868_3108_7627.cpp: In function 'int main()':
1_868_3108_7627.cpp:19:27: error: no matching function for call to '__gcd(long long int&, int&)'
         ll a1=__gcd(x[0],n);
                           ^
1_868_3108_7627.cpp:19:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 1_868_3108_7627.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note:   template argument deduction/substitution failed:
1_868_3108_7627.cpp:19:27: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
         ll a1=__gcd(x[0],n);
                           ^
1_868_3108_7627.cpp:20:27: error: no matching function for call to '__gcd(long long int&, int&)'
         ll a2=__gcd(x[1],n);
                           ^
1_868_3108_7627.cpp:20:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 1_868_3108_7627.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note:   template argument deduction/substitution failed:
1_868_3108_7627.cpp:20:27: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
         ll a2=__gcd(x[1],n);
                           ^
1_868_3108_7627.cpp:21:27: error: no matching function for call to '__gcd(long long int&, int&)'
         ll a3=__gcd(x[2],n);
                           ^
1_868_3108_7627.cpp:21:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 1_868_3108_7627.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note:   template argument deduction/substitution failed:
1_868_3108_7627.cpp:21:27: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
         ll a3=__gcd(x[2],n);
                           ^
1_868_3108_7627.cpp:22:27: error: no matching function for call to '__gcd(long long int&, int&)'
         ll a4=__gcd(x[3],n);
                           ^
1_868_3108_7627.cpp:22:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 1_868_3108_7627.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note:   template argument deduction/substitution failed:
1_868_3108_7627.cpp:22:27: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
         ll a4=__gcd(x[3],n);
                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 02:27:52, Gzip enabled