Borderou de evaluare (job #3218731)

Utilizator Lup_GabrielaLup Gabriela Lup_Gabriela Data 27 martie 2024 22:14:41
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:25:15: warning: comparison with string literal results in unspecified behavior [-Waddress] 25 | if (s == "*" or t == "*") | ~~^~~~~~ main.cpp:25:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 25 | if (s == "*" or t == "*") | ~~^~~~~~ main.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 35 | while (i < strlen(s)) | ~~^~~~~~~~~~~ main.cpp:37:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 37 | if (s[i] != t[j]) | ^ main.cpp:22:20: warning: iteration 27 invokes undefined behavior [-Waggressive-loop-optimizations] 22 | fr1[i] = 0; | ~~~~~~~^~~ main.cpp:21:23: note: within this loop 21 | for (i = 0; i <= 27; i ++) | ~~^~~~~ main.cpp:22:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [108, 111] is out of the bounds [0, 108] of object 'fr1' with type 'int [27]' [-Warray-bounds] 22 | fr1[i] = 0; | ~~~~~~~^~~ main.cpp:15:9: note: 'fr1' declared here 15 | int fr1[27], fr2[11]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?