0_0_29575826_8544.cpp: In function 'int main()':
0_0_29575826_8544.cpp:16:9: error: reference to 'array' is ambiguous
cin>>array[j];
^
0_0_29575826_8544.cpp:6:5: note: candidates are: int array [100]
int array[100];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_29575826_8544.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:81:12: note: template<class _Tp, long long unsigned int _Nm> struct std::array
struct array
^
0_0_29575826_8544.cpp:17:9: error: reference to 'array' is ambiguous
s += array[j];
^
0_0_29575826_8544.cpp:6:5: note: candidates are: int array [100]
int array[100];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_29575826_8544.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:81:12: note: template<class _Tp, long long unsigned int _Nm> struct std::array
struct array
^
0_0_29575826_8544.cpp:24:8: error: reference to 'array' is ambiguous
if (array[j] == x)
^
0_0_29575826_8544.cpp:6:5: note: candidates are: int array [100]
int array[100];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_29575826_8544.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:81:12: note: template<class _Tp, long long unsigned int _Nm> struct std::array
struct array
^
|