Borderou de evaluare (job #2925794)

Utilizator valentin12Valentin Ion Semen valentin12 Data 16 octombrie 2022 02:11:13
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:23:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 23 | for(int i = 0; i < G[nod].size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void dfstrans(int)': main.cpp:33:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for(int i = 0 ; i < gt[nod].size(); i++) | ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:52:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 52 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 55 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:61:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 61 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:74:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 74 | for(int j=0; j < ctc[i].size(); j++) | ~~^~~~~~~~~~~~~~~ main.cpp:53:19: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 53 | st[i] = 0; | ~~~~~~^~~ main.cpp:52:26: note: within this loop 52 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:56:20: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 56 | use[i] = 0; | ~~~~~~~^~~ main.cpp:55:26: note: within this loop 55 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:62:20: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 62 | use[i] = 0; | ~~~~~~~^~~ main.cpp:61:26: note: within this loop 61 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:53:19: 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] 53 | st[i] = 0; | ~~~~~~^~~ main.cpp:12:5: note: 'st' declared here 12 | int st[100001]; | ^~ main.cpp:56:20: 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] 56 | use[i] = 0; | ~~~~~~~^~~ main.cpp:11:5: note: 'use' declared here 11 | int use[100001];
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms7917kbCorect1030
25ms7786kbCorect10
33ms7786kbCorect10
44ms7524kbCorect1030
510ms8486kbCorect10
613ms8949kbCorect10
717ms9457kbCorect1030
847ms11526kbCorect10
9102ms15642kbCorect10
10118ms18874kbCorect1010
Punctaj total100

Ceva nu functioneaza?