Borderou de evaluare (job #3288433)

Utilizator 9onelostSendrescu Tudor-Gabriel 9onelost Data 22 martie 2025 11:41:44
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int factor()': main.cpp:164:22: warning: array subscript has type 'char' [-Wchar-subscripts] 164 | ret = F[s[i++]]; | ~~~~~^ main.cpp: In function 'int main()': main.cpp:194:11: warning: array subscript has type 'char' [-Wchar-subscripts] 194 | F[c] = 1 - F[c]; | ^ main.cpp:194:22: warning: array subscript has type 'char' [-Wchar-subscripts] 194 | F[c] = 1 - F[c]; | ^ main.cpp: In function 'int factor()': main.cpp:176:12: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 176 | return ret; | ^~~ main.cpp:150:9: note: 'ret' was declared here 150 | int ret; | ^~~ In function 'int not_op()', inlined from 'int and_op()' at main.cpp:124:26: main.cpp:140:13: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 140 | ret = (ret^factor()); | ~~~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int and_op()': main.cpp:150:9: note: 'ret' was declared here 150 | int ret; | ^~~ main.cpp: In function 'int not_op()': main.cpp:140:13: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized] 140 | ret = (ret^factor()); | ~~~~^~~~~~~~~~~~~~~~ main.cpp:150:9: note: 'ret' was declared here 150 | int ret; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
60ms303kbOK10
70ms303kbOK10
80ms303kbOK10
90ms303kbOK10
100ms303kbOK10
Punctaj total100

Ceva nu functioneaza?