Borderou de evaluare (job #1230369)

Utilizator cahemanCasian Patrascanu caheman Data 18 septembrie 2014 14:04:17
Problema Time Travel Gossip Status done
Runda Algoritmiada 2014, Runda Finala, Clasele 9 - 10 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:60:59: warning: variable ‘blat’ set but not used [-Wunused-but-set-variable] int n, m, i, j, lg, poz1, poz2, barfe, max, cc, nr = 0, blat; ^ user.cpp:58:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ttg.in", "r", stdin); ^ user.cpp:59:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ttg.out", "w", stdout); ^ user.cpp:61:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &m, &n); ^ user.cpp:65:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &lg); ^ user.cpp:68:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cc); ^ user.cpp:130:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &lg); ^ user.cpp: In function ‘int cabin(int, int, int)’: user.cpp:38:24: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] int sta, dre, med, last; ^ user.cpp: In function ‘int main()’: user.cpp:132:24: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] barfe = rez[poz1].y; ^ user.cpp:111:24: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(rez[poz1].y > a.y) ^ user.cpp:113:16: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(a.y > rez[poz2].y) ^ user.cpp:95:22: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(rez[st].y < rez[poz1].y && rez[poz1].x <= pairs[i].y) ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
1156ms1016kbOK10
2144ms1012kbOK10
364ms268kbOK10
460ms268kbOK10
5140ms1004kbOK10
6140ms988kbOK10
784ms996kbOK10
888ms1012kbOK10
9160ms1016kbOK10
10156ms988kbOK10
Punctaj total100

Ceva nu functioneaza?