Borderou de evaluare (job #2025893)

Utilizator Coroian_DavidCoroian David Coroian_David Data 23 septembrie 2017 13:48:13
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘bool cmp::operator()(const int&, const int&) const’: user.cpp:67:11: error: assignment of member ‘cmp::x’ in read-only object x = 0; ^ user.cpp: In function ‘void readFile()’: user.cpp:36:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &ax, &ay); ^ user.cpp:37:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &bx, &by); ^ user.cpp:38:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &cx, &cy); ^ user.cpp: In function ‘int main()’: user.cpp:99:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "algsort.in", "r", stdin ); ^ user.cpp:100:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "algsort.out", "w", stdout ); ^ user.cpp:102:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &N ); ^ user.cpp:104:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &A[i] ); ^

Ceva nu functioneaza?