Borderou de evaluare (job #810475)

Utilizator avatar klein Kleinknecht Dorin klein IP ascuns
Problemă Reteta1 Compilator cpp-32
Rundă lasm_21_02_2025_clasa11 Status evaluat
Dată 21 feb. 2025 15:05:10 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'float pretTotalReteta(reteta)': main.cpp:26:14: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized] 26 | total+=preturi[m]; main.cpp:24:11: note: 'total' was declared here 24 | float total; | ^~~~~ main.cpp: In function 'int maskNou(int, reteta)': main.cpp:36:21: warning: 'medicamente' may be used uninitialized [-Wmaybe-uninitialized] 36 | medicamente = medicamente | x; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp:33:14: note: 'medicamente' was declared here 33 | int nou, medicamente; | ^~~~~~~~~~~ In function 'float pretTotalReteta(reteta)', inlined from 'void bt(std::vector<reteta>, int, int, int, float)' at main.cpp:50:47: main.cpp:28:25: warning: 'total' may be used uninitialized [-Wmaybe-uninitialized] 28 | if(r.reducere) total/=2; | ~~~~~^~~ main.cpp: In function 'void bt(std::vector<reteta>, int, int, int, float)': main.cpp:24:11: note: 'total' was declared here 24 | float total; | ^~~~~ In function 'int maskNou(int, reteta)', inlined from 'void bt(std::vector<reteta>, int, int, int, float)' at main.cpp:52:27: main.cpp:36:21: warning: 'medicamente' may be used uninitialized [-Wmaybe-uninitialized] 36 | medicamente = medicamente | x; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'void bt(std::vector<reteta>, int, int, int, float)': main.cpp:33:14: note: 'medicamente' was declared here 33 | int nou, medicamente; | ^~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 89 ms 249 kb Incorect 0
2 1 ms 270 kb Incorect 0
3 1 ms 270 kb Incorect 0
4 9 ms 266 kb Incorect 0
5 19 ms 249 kb Incorect 0
6 29 ms 245 kb Incorect 0
7 49 ms 249 kb Incorect 0
8 109 ms 270 kb Time limit exceeded 0
9 109 ms 512 kb Time limit exceeded 0
10 109 ms 249 kb Time limit exceeded 0
Punctaj total 0