Borderou de evaluare (job #1490830)

Utilizator adina_aldeaAldea Adina adina_aldea Data 24 septembrie 2015 11:09:44
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:21:2: warning: implicit declaration of function ‘sortare’ [-Wimplicit-function-declaration] sortare(v,n); ^ user.c:47:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration] close(in); ^ user.c: At top level: user.c:52:6: warning: conflicting types for ‘sortare’ [enabled by default] void sortare(int a[],int n) ^ user.c:21:2: note: previous implicit declaration of ‘sortare’ was here sortare(v,n); ^ user.c: In function ‘main’: user.c:15:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&n); ^ user.c:19:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&v[i]); ^ user.c:43:9: warning: ‘save’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(save<major) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms260kbOK10
30ms264kbOK10
40ms240kbKilled by signal 11(SIGSEGV).0
50ms232kbKilled by signal 11(SIGSEGV).0
60ms236kbKilled by signal 11(SIGSEGV).0
70ms236kbKilled by signal 11(SIGSEGV).0
80ms236kbKilled by signal 11(SIGSEGV).0
90ms232kbKilled by signal 11(SIGSEGV).0
100ms236kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?