Borderou de evaluare (job #2925793)

Utilizator valentin12Valentin Ion Semen valentin12 Data 16 octombrie 2022 02:00:48
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:22: 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 dfst(int)': main.cpp:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for(int i=0;i<gt[nod].size();++i) | ~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:51:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 51 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:54:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 54 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:60:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 60 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:73:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for(int j=0;j<ctc[i].size();++j) | ~^~~~~~~~~~~~~~ main.cpp:52:19: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 52 | st[i] = 0; | ~~~~~~^~~ main.cpp:51:26: note: within this loop 51 | for(int i = 0; i <= sizeof(st)/sizeof(st[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:20: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 55 | use[i] = 0; | ~~~~~~~^~~ main.cpp:54:26: note: within this loop 54 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:61:20: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations] 61 | use[i] = 0; | ~~~~~~~^~~ main.cpp:60:26: note: within this loop 60 | for(int i = 0; i <= sizeof(use)/sizeof(use[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:52: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] 52 | st[i] = 0; | ~~~~~~^~~ main.cpp:12:5: note: 'st' declared here 12 | int st[100001]; | ^~ main.cpp:55: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] 55 | 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
14ms7786kbCorect1030
25ms7786kbCorect10
32ms7655kbCorect10
45ms7524kbCorect1030
59ms8441kbCorect10
612ms8871kbCorect10
717ms9318kbCorect1030
850ms11386kbCorect10
9103ms15380kbCorect10
10120ms18481kbCorect1010
Punctaj total100

Ceva nu functioneaza?