Borderou de evaluare (job #1176946)

Utilizator UPB_MIREA_AVRAM_BOACAUPB ShiftMyBits UPB_MIREA_AVRAM_BOACA Data 26 aprilie 2014 11:18:23
Problema Speculum Status done
Runda ONIS 2014, Runda 4 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:20:12: error: ‘int y1’ redeclared as different kind of symbol int t, x1, y1, x2, y2; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/iosfwd:38, from /usr/local/include/c++/4.8.0/ios:38, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:79:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d", &x1, &y1, &x2, &y2); ^ user.cpp:88:45: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] query(x1, y1, x2, y2, power, p, u, d); ^ user.cpp:28:6: error: initializing argument 2 of ‘void query(int, int, int, int, int, long long int, long long int&, long long int&)’ [-fpermissive] void query(int x1, int y1, int x2, int y2, int power, long long val, long long &u, long long &d) ^

Ceva nu functioneaza?