Borderou de evaluare (job #3038793)

Utilizator alexddAlexandru Dima alexdd Data 27 martie 2023 19:29:25
Problema Telefon3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 91

Raport evaluator

Compilare: main.cpp: In function 'std::pair<int, int> solve(int)': main.cpp:54:41: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 54 | rez.second -= d[mij2]; | ~~~~~~^ main.cpp:41:33: note: 'mij2' was declared here 41 | int st2,dr2,mij2; | ^~~~ In file included from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:2: In function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'std::pair<int, int> solve(int)' at main.cpp:115:22: /usr/include/c++/12.2.1/bits/stl_algobase.h:259:15: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 259 | if (__a < __b) | ~~~~^~~~~ main.cpp: In function 'std::pair<int, int> solve(int)': main.cpp:100:25: note: 'mij2' was declared here 100 | int st2,dr2,mij2; | ^~~~ main.cpp:80:53: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 80 | if(mij>=2) aux = max(aux, d[mij2] - d[mij-b/r+1] - d[mij-b/r+2]); | ~~~~~~^ main.cpp:65:33: note: 'mij2' was declared here 65 | int st2,dr2,mij2; | ^~~~ main.cpp:33:20: warning: 'mij' may be used uninitialized [-Wmaybe-uninitialized] 33 | if(b/r - mij == 1) | ~~~~^~~~~ main.cpp:13:15: note: 'mij' was declared here 13 | int st,dr,mij; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbCorect!5
20ms303kbCorect!5
30ms303kbCorect!5
40ms303kbPrima cerinta corecta!2
50ms303kbCorect!5
60ms303kbCorect!5
70ms303kbCorect!5
81ms557kbCorect!5
91ms303kbCorect!5
101ms303kbCorect!5
119ms819kbPrima cerinta corecta!2
1229ms1236kbCorect!5
130ms303kbCorect!5
1434ms1347kbCorect!5
1594ms3960kbCorect!5
1684ms2535kbCorect!5
1793ms4030kbCorect!5
1874ms2203kbCorect!5
1989ms3465kbCorect!5
2024ms1343kbPrima cerinta corecta!2
Punctaj total91

Ceva nu functioneaza?