Borderou de evaluare (job #1353744)

Utilizator UAIC_HreapcaVlasNegrusUAIC Hreapca Vlas Negrus UAIC_HreapcaVlasNegrus Data 21 februarie 2015 14:40:14
Problema Por Costel si Meciul Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int radacina(int)’: user.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:29:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("meciul.in","r",stdin); ^ user.cpp:30:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("meciul.out","w",stdout); ^ user.cpp:34:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&T); ^ user.cpp:37:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&M); ^ user.cpp:48:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ user.cpp: In function ‘int radacina(int)’: user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (tata[r]!=r) r=tata[r]; ^ user.cpp: In function ‘int main()’: user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] user.cpp:18:17: note: ‘r’ was declared here int aux=nod, r; ^ user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (tata[r]!=r) r=tata[r]; ^ user.cpp:18:17: note: ‘r’ was declared here int aux=nod, r; ^ user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (tata[r]!=r) r=tata[r]; ^ user.cpp:18:17: note: ‘r’ was declared here int aux=nod, r; ^ user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (tata[r]!=r) r=tata[r]; ^ user.cpp:18:17: note: ‘r’ was declared here int aux=nod, r; ^ user.cpp:20:17: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (tata[r]!=r) r=tata[r]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1580ms2592kbIncorect0
Punctaj total0

Ceva nu functioneaza?