Borderou de evaluare (job #3264334)

Utilizator BOSSSTEFANPetrescu Ioan Stefan BOSSSTEFAN Data 20 decembrie 2024 15:08:47
Problema Zoo Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In member function 'void SegmentTree::query(int, int, int, int, int, int, int, int&)': main.cpp:71:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 71 | for(i = 0; i < seg[nod].size() && seg[nod][i] < c; i++); | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int cbd(int*, int, int)': main.cpp:32:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 32 | return poz; | ^~~ main.cpp:20:25: note: 'poz' was declared here 20 | int st = 1, dr = n, poz, mij; | ^~~ main.cpp: In function 'int cbs(int*, int, int)': main.cpp:48:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 48 | return poz; | ^~~ main.cpp:36:25: note: 'poz' was declared here 36 | int st = 1, dr = n, poz, mij; | ^~~ main.cpp: In function 'int main()': main.cpp:144:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 144 | x1 = cbd(l, n, x1); | ~~~^~~~~~~~~~~~~~~ main.cpp:20:25: note: 'poz' was declared here 20 | int st = 1, dr = n, poz, mij; | ^~~ main.cpp:145:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 145 | x2 = cbs(l, n, x2); | ~~~^~~~~~~~~~~~~~~ main.cpp:36:25: note: 'poz' was declared here 36 | int st = 1, dr = n, poz, mij; | ^~~ main.cpp:146:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 146 | y1 = cbd(c, n, y1); | ~~~^~~~~~~~~~~~~~~ main.cpp:20:25: note: 'poz' was declared here 20 | int st = 1, dr = n, poz, mij; | ^~~ In member function 'void SegmentTree::query(int, int, int, int, int, int, int, int&)', inlined from 'int SegmentTree::qry(int, int, int, int)' at main.cpp:95:14, inlined from 'int main()' at main.cpp:148:43: main.cpp:78:18: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 78 | query(nod * 2, st, mij, a, b, c, d, ans); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:36:25: note: 'poz' was declared here 36 | int st = 1, dr = n, poz, mij; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
31ms557kbIncorect0
49ms819kbIncorect0
579ms4161kbIncorect0
6113ms3547kbIncorect0
7123ms4177kbIncorect0
814ms1163kbIncorect0
9153ms3772kbIncorect0
1064ms4509kbIncorect0
Punctaj total10

Ceva nu functioneaza?