Borderou de evaluare (job #2450117)

Utilizator ejoi2019Ejoi 2019 ejoi2019 Data 21 august 2019 23:09:32
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void NIGGA_SORT(int, int)': main.cpp:32:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(tp==0) ^ main.cpp: In function 'int main()': main.cpp:52:21: error: 'sqrt' was not declared in this scope BLACK=sqrt(n); ^ main.cpp:49: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); ^ main.cpp:49:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:51:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:54:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?