F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39778230_8578.cpp: In function 'int main()':
0_0_39778230_8578.cpp:46:13: error: reference to 'gcd' is ambiguous
   46 |             gcd[j].push_back(i);
      |             ^~~
In file included from .\stdc++.h:58:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39778230_8578.cpp:35:13: note:                 'std::vector<long long int> gcd [50015]'
   35 | vector<int> gcd[N+10];
      |             ^~~
0_0_39778230_8578.cpp:73:27: error: reference to 'gcd' is ambiguous
   73 |             for(int j=0;j<gcd[x].size();j++){
      |                           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39778230_8578.cpp:35:13: note:                 'std::vector<long long int> gcd [50015]'
   35 | vector<int> gcd[N+10];
      |             ^~~
0_0_39778230_8578.cpp:74:23: error: reference to 'gcd' is ambiguous
   74 |                 int y=gcd[x][j];
      |                       ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
  164 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
0_0_39778230_8578.cpp:35:13: note:                 'std::vector<long long int> gcd [50015]'
   35 | vector<int> gcd[N+10];
      |             ^~~


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-11-23 07:19:31, Gzip enabled