Mai intai trebuie sa te autentifici.

Borderou de evaluare (job #1959798)

Utilizator gorneanu.andreiFMI Gorneanu Andrei gorneanu.andrei Data 9 aprilie 2017 22:00:21
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:22: error: ‘int y1 [400100]’ redeclared as different kind of symbol int x1[MAXN], y1[MAXN]; ^ 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/iostream:38, 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 ‘void solve()’: user.cpp:72:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[j] = y[poz[i]]; ^ user.cpp:72:23: error: assignment of read-only location ‘*(y1 + ((sizetype)j))’ y1[j] = y[poz[i]]; ^ user.cpp:72:23: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:82:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] g << x1[i] << " " << y1[i] << "\n"; ^

Ceva nu functioneaza?