Borderou de evaluare (job #2984243)

Utilizator alex_dacDumitrascu Constantin Alexandru alex_dac Data 23 februarie 2023 19:18:32
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:25:11: warning: array subscript has type 'char' [-Wchar-subscripts] 25 | F[c]=1-F[c]; | ^ main.cpp:25:18: warning: array subscript has type 'char' [-Wchar-subscripts] 25 | F[c]=1-F[c]; | ^ main.cpp: In function 'int factor()': main.cpp:70:20: warning: array subscript has type 'char' [-Wchar-subscripts] 70 | return F[ t[i++] ]; | ~~~~~^ main.cpp:72:12: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 72 | return r; | ^ main.cpp:59:9: note: 'r' was declared here 59 | int r; | ^ In function 'int op_xor()', inlined from 'int op_and()' at main.cpp:44:22, inlined from 'int op_or()' at main.cpp:35:22: main.cpp:53:10: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 53 | r=(r^factor()); | ~^~~~~~~~~~~~~ main.cpp: In function 'int op_or()': main.cpp:59:9: note: 'r' was declared here 59 | int r; | ^ main.cpp: In function 'int op_xor()': main.cpp:53:10: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 53 | r=(r^factor()); | ~^~~~~~~~~~~~~ main.cpp:59:9: note: 'r' was declared here 59 | int r; | ^ In function 'int op_xor()', inlined from 'int op_and()' at main.cpp:44:22: main.cpp:53:10: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 53 | r=(r^factor()); | ~^~~~~~~~~~~~~ main.cpp: In function 'int op_and()': main.cpp:59:9: note: 'r' was declared here 59 | int r; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
115ms442kbKilled by Signal 110
211ms442kbKilled by Signal 110
311ms442kbKilled by Signal 110
411ms442kbKilled by Signal 110
511ms442kbKilled by Signal 110
615ms442kbKilled by Signal 110
711ms442kbKilled by Signal 110
811ms442kbKilled by Signal 110
915ms442kbKilled by Signal 110
1011ms442kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?