Borderou de evaluare (job #2565633)

Utilizator IoanaDraganescuIoana Draganescu IoanaDraganescu Data 2 martie 2020 15:38:03
Problema Delay Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:18: error: 'int time [16005]' redeclared as different kind of symbol int time[Nmax + 5], a[Lgmax + 5][Nmax + 5], lev[Nmax + 5], first[Nmax + 5], last[Nmax + 5], aib[2 * Nmax + 5]; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148, from /usr/include/c++/6/ext/atomicity.h:35, from /usr/include/c++/6/bits/ios_base.h:39, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)' extern time_t time (time_t *__timer) __THROW; ^~~~ main.cpp: In function 'void Read()': main.cpp:21:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] fin >> time[i]; ^ main.cpp:21:13: error: no match for 'operator>>' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'time_t(time_t*) throw () {aka long int(long int*) throw ()}') fin >> time[i]; ~~~~^~~~~~~~~~ In file included from /usr/include/c++/6/iostream:40:0, from main.cpp:1: /usr/include/c++/6/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&)) ^~~~~~~~ /usr/include/c++/6/istream:120:7: note: conversion of argument 1 would be ill-formed: main.cpp:21:22: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}' [-fpermissive] fin >> time[i]; ~~~~~~^ In file included from /usr/include/c++/6/iostream:40:0, from main.cpp:1: /usr/include/c++/6/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&)) ^~~~~~~~ /usr/include/c++/6/istream:124:7: note: conversion of argument 1 would be ill-formed: main.cpp:21:22: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}' [-fpermissive] fin >> time[i]; ~~~~~~^ In file included from /usr/include/c++/6/iostream:40:0, from main.cpp:1: /usr/include/c++/6/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; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match> operator>>(ios_base& (*__pf)(ios_base&)) ^~~~~~~~ /usr/include/c++/6/istream:131:7: note: conversion of argument 1 would be ill-formed: main.cpp:21:22: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive] fin >> time[i]; ~~~~~~^ In file included from /usr/include/c++/6/iostream:40:0, Non zero exit status: 1

Ceva nu functioneaza?