cyberland.cpp: In function 'double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
cyberland.cpp:24:11: warning: value computed is not used [-Wunused-value]
24 | ans[1]==c[0]+c[1];
cyberland.cpp:31:12: warning: value computed is not used [-Wunused-value]
31 | ans[1]==c[0]/2+c[1];
cyberland.cpp:40:11: warning: value computed is not used [-Wunused-value]
40 | ans[3]==c[0]+c[1];
cyberland.cpp:47:12: warning: value computed is not used [-Wunused-value]
47 | ans[3]==c[0]/2+c[1];
cyberland.cpp:56:20: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
56 | if (ans[i]>ans[j])
| ~~~~~^
cyberland.cpp:54:17: note: within this loop
54 | for(int j=1; j<=3; j++)
| ~^~~
cyberland.cpp:43:11: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
43 | ans[3]=c[1];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[3];
| ^~~
cyberland.cpp:62:13: warning: array subscript 3 is above array bounds of 'int [3]' [-Warray-bounds]
62 | cout<<ans[3];
| ^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[3];
| ^~~