Borderou de evaluare (job #2166388)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 13 martie 2018 16:53:28
Problema Move Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:35:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &n); ^ user.cpp:37:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &v[i]); ^ user.cpp:26:16: warning: ‘nmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(prev[ind] > 0) print(prev[ind]); ^ user.cpp:77:23: note: ‘nmax’ was declared here int max = -1, nmax; ^ user.cpp:27:12: warning: ‘nmax’ may be used uninitialized in this function [-Wmaybe-uninitialized] f[v[ind]] = 1; ^ user.cpp:52:19: note: ‘nmax’ was declared here int max = -1, nmax; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms3400kbOK10
24ms3192kbOK10
38ms3320kbOK10
428ms4480kbOK10
532ms4640kbOK10
680ms4416kbOK10
7100ms4388kbOK10
872ms6204kbOK10
976ms6400kbPermutarea nu este sortata0
1092ms4536kbOK10
Punctaj total90

Ceva nu functioneaza?