Borderou de evaluare (job #2925795)

Utilizator valentin12Valentin Ion Semen valentin12 Data 16 octombrie 2022 02:15:51
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void dfs(int)': main.cpp:25:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | for(int i = 0; i < G[nod].size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void dfstrans(int)': main.cpp:35:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 35 | for(int i = 0 ; i < gt[nod].size(); i++) | ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:54:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 54 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:57:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 57 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:63:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 63 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:76:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 76 | for(int j=0; j < ctc[i].size(); j++) | ~~^~~~~~~~~~~~~~~ main.cpp:55:15: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 55 | st[i] = 0; | ~~~~~~^~~ main.cpp:54:22: note: within this loop 54 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:58:16: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 58 | use[i] = 0; | ~~~~~~~^~~ main.cpp:57:22: note: within this loop 57 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:64:16: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 64 | use[i] = 0; | ~~~~~~~^~~ main.cpp:63:22: note: within this loop 63 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400004, 400007] is out of the bounds [0, 400004] of object 'st' with type 'int [100001]' [-Warray-bounds] 55 | st[i] = 0; | ~~~~~~^~~ main.cpp:14:5: note: 'st' declared here 14 | int st[100001]; | ^~ main.cpp:58:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400004, 400007] is out of the bounds [0, 400004] of object 'use' with type 'int [100001]' [-Warray-bounds] 58 | use[i] = 0; | ~~~~~~~^~~ main.cpp:13:5: note: 'use' declared here 13 | int use[100001];
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms7786kbCorect1030
23ms7786kbCorect10
35ms7524kbCorect10
43ms7393kbCorect1030
57ms8445kbCorect10
613ms8957kbCorect10
720ms9424kbCorect1030
847ms11509kbCorect10
9102ms15663kbCorect10
10118ms19005kbCorect1010
Punctaj total100

Ceva nu functioneaza?