Borderou de evaluare (job #891347)

Utilizator tzipleatudTudor Tiplea tzipleatud Data 25 februarie 2013 16:07:26
Problema Puncte Status done
Runda baraj_2007_ziua_1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int GetInt()’: user.cpp:23: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result user.cpp:27: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result user.cpp: At global scope: user.cpp:43: error: ‘long double time’ redeclared as different kind of symbol /usr/include/time.h:186: error: previous declaration of ‘time_t time(time_t*)’ user.cpp: In function ‘int main()’: user.cpp:86: error: assignment of function ‘time_t time(time_t*)’ user.cpp:86: error: cannot convert ‘long long int’ to ‘time_t(time_t*)throw ()’ in assignment user.cpp:87: error: invalid operands of types ‘time_t(time_t*)throw ()’ and ‘double’ to binary ‘operator/’ user.cpp:87: error: in evaluation of ‘operator/=(time_t(time_t*)throw (), double)’ user.cpp:116: error: assignment of function ‘time_t time(time_t*)’ user.cpp:116: error: cannot convert ‘long long int’ to ‘time_t(time_t*)throw ()’ in assignment user.cpp:117: error: invalid operands of types ‘time_t(time_t*)throw ()’ and ‘double’ to binary ‘operator/’ user.cpp:117: error: in evaluation of ‘operator/=(time_t(time_t*)throw (), double)’ In file included from /usr/include/c++/4.4/bits/stl_algobase.h:66, from /usr/include/c++/4.4/bits/char_traits.h:41, from /usr/include/c++/4.4/ios:41, from /usr/include/c++/4.4/istream:40, from /usr/include/c++/4.4/fstream:40, from user.cpp:1: /usr/include/c++/4.4/bits/stl_pair.h: In constructor ‘std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = time_t (*)(time_t*)throw (), _U2 = std::pair<int, int>, _T1 = long double, _T2 = std::pair<int, int>]’: user.cpp:88: instantiated from here /usr/include/c++/4.4/bits/stl_pair.h:101: error: cannot convert ‘time_t (* const)(time_t*)throw ()’ to ‘long double’ in initialization

Ceva nu functioneaza?