Borderou de evaluare (job #3213433)

Utilizator hiken056Stefan Rusu hiken056 Data 13 martie 2024 09:59:37
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int solve(std::string, std::string, int)': main.cpp:18:13: warning: array subscript has type 'char' [-Wchar-subscripts] 18 | vft[i] ++; | ^ main.cpp:21:13: warning: array subscript has type 'char' [-Wchar-subscripts] 21 | vfs[i] ++; | ^ main.cpp:24:19: warning: iteration 255 invokes undefined behavior [-Waggressive-loop-optimizations] 24 | if ( vfs[i] != vft[i] ) sol++; | ~~~~~^ main.cpp:23:24: note: within this loop 23 | for ( int i = 1; i <= 256; ++ i ) { | ~~^~~~~~ main.cpp: In function 'int main()': main.cpp:37:20: warning: iteration 255 invokes undefined behavior [-Waggressive-loop-optimizations] 37 | vfs[i] = 0; | ~~~~~~~^~~ main.cpp:36:28: note: within this loop 36 | for ( int i = 1; i <= 256; ++ i) { | ~~^~~~~~ main.cpp:37:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1024, 1027] is out of the bounds [0, 1024] of object 'vfs' with type 'int [256]' [-Warray-bounds] 37 | vfs[i] = 0; | ~~~~~~~^~~ main.cpp:12:5: note: 'vfs' declared here 12 | int vfs[256], vft[256]; | ^~~ main.cpp:38:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [1024, 1027] is out of the bounds [0, 1024] of object 'vft' with type 'int [256]' [-Warray-bounds] 38 | vft[i] = 0; | ~~~~~~~^~~ main.cpp:12:15: note: 'vft' declared here 12 | int vfs[256], vft[256]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms401kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?