foo.cpp:22:14: error: 'int ftime [105]' redeclared as different kind of symbol
int ftime[105];
^
In file included from C:/mingw32/i686-w64-mingw32/include/pthread.h:70:0,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/i686-w64-mingw32/bits/gthr-default.h:35,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/i686-w64-mingw32/bits/gthr.h:148,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/ext/atomicity.h:35,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/bits/ios_base.h:39,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/ios:42,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/ostream:38,
from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/iostream:39,
from foo.cpp:1:
C:/mingw32/i686-w64-mingw32/include/sys/timeb.h:111:29: note: previous declaration 'void ftime(timeb*)'
__CRT_INLINE void __cdecl ftime(struct timeb *_Tmb) {
^~~~~
foo.cpp: In function 'int main()':
foo.cpp:29:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cin>>ftime[i]>>value[i];
^
foo.cpp:29:12: error: no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'void(timeb*)')
cin>>ftime[i]>>value[i];
~~~^~~~~~~~~~
In file included from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/iostream:40:0,
from foo.cpp:1:
C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/istream:120:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(__istream_type& (*__pf)(__istream_type&))
^~~~~~~~
C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/istream:120:7: note: conversion of argument 1 would be ill-formed:
foo.cpp:29:21: error: invalid conversion from 'void (__attribute__((__cdecl__)) *)(timeb*)' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}' [-fpermissive]
cin>>ftime[i]>>value[i];
~~~~~~~^
In file included from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/iostream:40:0,
from foo.cpp:1:
C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/istream:124:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>] <near match>
operator>>(__ios_type& (*__pf)(__ios_type&))
^~~~~~~~
C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/istream:124:7: note: conversion of argument 1 would be ill-formed:
foo.cpp:29:21: error: invalid conversion from 'void (__attribute__((__cdecl__)) *)(timeb*)' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}' [-fpermissive]
cin>>ftime[i]>>value[i];
~~~~~~~^
In file included from C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/iostream:40:0,
from foo.cpp:1:
C:/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/c++/istream:131:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Tra