Borderou de evaluare (job #1717224)

Utilizator andreiSevastreAndrei Sevastre andreiSevastre Data 14 iunie 2016 16:13:54
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void merge(int, int)’: user.cpp:18:24: error: ‘memset’ was not declared in this scope memset(w, 0, sizeof(w)); ^ user.cpp:21:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if((p2 > b) || v[p1] <= v[p2] && p1 <= (a+b)/2) ^ user.cpp:27:42: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if((p1 > (a + b) / 2) || v[p1] > v[p2] && p2 <= b) ^ user.cpp: In function ‘int main()’: user.cpp:48:37: 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:49:39: 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); ^

Ceva nu functioneaza?