Pagini recente » Borderou de evaluare (job #3226143) | Borderou de evaluare (job #1362052) | Borderou de evaluare (job #2753056) | Borderou de evaluare (job #2424129) | Borderou de evaluare (job #3218731)
Borderou de evaluare (job #3218731)
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 |
1 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |