Borderou de evaluare (job #2300341)

Utilizator Robert_VRVRobert Vadastreanu Robert_VRV Data 11 decembrie 2018 10:39:19
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cablaj.in", "r", stdin); ^ main.cpp:21:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cablaj.out", "w", stdout); ^ main.cpp:24:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:26:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &points[i].x, &points[i].y); ^ main.cpp:13:78: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] return sqrt((this->x - other.x) * (this->x - other.x) + (this->y - other.y) * (this->y - other.y)); ~~~~~~^ main.cpp:33:9: note: 'j' was declared here int j; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms131kbOK10
34ms131kbOK10
427ms131kbOK10
552ms131kbOK10
6116ms131kbOK10
7181ms131kbOK10
8285ms131kbOK10
9303ms131kbTime limit exceeded0
10300ms131kbTime limit exceeded0
Punctaj total80

Ceva nu functioneaza?