0_0_38788929_24312.cpp:8:11: error: 'long long int time [1000010]' redeclared as different kind of entity
8 | int time[N];
| ^
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/pthread.h:69,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/atomicity.h:35,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:39,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/streambuf:43,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/streambuf_iterator.h:35,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iterator:66,
from .\stdc++.h:54:
gcc-13.1.0/x86_64-w64-mingw32/include/time.h:256:34: note: previous declaration 'time_t time(time_t*)'
256 | static __inline time_t __CRTDECL time(time_t *_Time) { return _time64(_Time); }
| ^~~~
0_0_38788929_24312.cpp: In function 'int main()':
0_0_38788929_24312.cpp:26:17: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'time_t(time_t*)' {aka 'long long int(long long int*)'})
26 | cin >> time[i];
| ~~~ ^~ ~~~~~~~
| | |
| | time_t(time_t*) {aka long long int(long long int*)}
| std::istream {aka std::basic_istream<char>}
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/sstream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/complex:45,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ccomplex:39,
from .\stdc++.h:127:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
325 | operator>>(void*& __p)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:325:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'void*' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(void*)(time + ((sizetype)i))' to 'void*&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:201:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
201 | operator>>(unsigned long long& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:201:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long long unsigned int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(long long unsigned int)(time + ((sizetype)i))' to 'long long unsigned int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:197:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
197 | operator>>(long long& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:197:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long long int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(long long int)(time + ((sizetype)i))' to 'long long int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:192:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long unsigned int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(long unsigned int)(time + ((sizetype)i))' to 'long unsigned int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:188:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(long int)(time + ((sizetype)i))' to 'long int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:184:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'unsigned int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(unsigned int)(time + ((sizetype)i))' to 'unsigned int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:181:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
| time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_38788929_24312.cpp:26:26: error: cannot bind rvalue '(int)(time + ((sizetype)i))' to 'int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:177:7: note: conversion of argument 1 would be ill-formed:
0_0_38788929_24312.cpp:26:26: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'short unsigned int' [-fpermissive]
26 | cin >> time[i];
| ~~~~~~^
| |
|
|