Borderou de evaluare (job #1822975)

Utilizator Coroian_DavidCoroian David Coroian_David Data 5 decembrie 2016 19:35:24
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:22:20: error: ‘n’ was not declared in this scope sort(A + 1, A + n + 1, cmp); ^ user.cpp:22:30: error: ‘sort’ was not declared in this scope sort(A + 1, A + n + 1, cmp); ^ user.cpp:15: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:16: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:18:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &N ); ^ user.cpp:20: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?