Borderou de evaluare (job #1467010)

Utilizator BLz0rDospra Cristian BLz0r Data 2 august 2015 15:13:14
Problema Zoo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:15: error: ‘int y1’ redeclared as different kind of symbol int N, M, x1, y1, x2, y2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:62:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf ( f, "%d%d", &x1, &y1 ); ^ user.cpp:72:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf ( f, "%d%d%d%d", &x1, &y1, &x2, &y2 ); ^ In file included from /usr/include/c++/4.8/algorithm:61:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h: In instantiation of ‘_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Tp = double(double)throw ()]’: user.cpp:39:74: required from here /usr/include/c++/4.8/bits/stl_algobase.h:965:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (*__middle < __val) ^ In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:2: /usr/include/c++/4.8/bits/stl_pair.h: In instantiation of ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = int; _U2 = double (*)(double)throw (); _T1 = int; _T2 = int]’: user.cpp:63:14: required from here /usr/include/c++/4.8/bits/stl_pair.h:189:11: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] second = std::forward<_U2>(__p.second); ^ user.cpp:59:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%d", &N ); ^ user.cpp:62:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%d%d", &x1, &y1 ); ^ user.cpp:69:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%d", &M ); ^ user.cpp:72:53: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%d%d%d%d", &x1, &y1, &x2, &y2 ); ^

Ceva nu functioneaza?