Borderou de evaluare (job #2714965)

Utilizator NorbiNORBI KOVER Norbi Data 2 martie 2021 19:42:49
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'long int FindLca(long int, long int)': main.cpp:58:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(euler[j].first!=y&&j<euler.size()) ~^~~~~~~~~~~~~ main.cpp:68:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j<euler.size()) ~^~~~~~~~~~~~~ main.cpp: In function 'void Print()': main.cpp:93:54: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] fprintf(g,"%ld %ld\n",Muchii[i].x,Muchii[i].y); ^ main.cpp:93:54: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=] main.cpp: In function 'void read()': main.cpp:18:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld%ld",&n,&nrp); ^ main.cpp:21:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] long j;fscanf(f,"%ld",&j); ^ main.cpp: In function 'long int FindLca(long int, long int)': main.cpp:79:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'void Rez()': main.cpp:85:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld%ld",&x,&y); ^ main.cpp: In function 'long int FindLca(long int, long int)': main.cpp:75:24: warning: 'tataComun' may be used uninitialized in this function [-Wmaybe-uninitialized] return tataComun; ^~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
24ms131kbOK1010
3274ms913kbOK1010
42802ms2334kbTime limit exceeded00
52800ms2928kbTime limit exceeded00
62800ms2408kbTime limit exceeded00
72800ms7196kbTime limit exceeded00
82800ms2875kbTime limit exceeded00
92802ms2842kbTime limit exceeded0
102800ms2875kbTime limit exceeded0
Punctaj total30

Ceva nu functioneaza?