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:11:8: warning: array subscript 0 is outside array bounds of 'int [0]' [-Warray-bounds]
11 | ans[0]=c[0];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:20:12: warning: array subscript 0 is outside array bounds of 'int [0]' [-Warray-bounds]
20 | ans[0]=c[i];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:27:11: warning: array subscript 1 is outside array bounds of 'int [0]' [-Warray-bounds]
27 | ans[1]=c[1];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:36:12: warning: array subscript 2 is outside array bounds of 'int [0]' [-Warray-bounds]
36 | ans[2]=c[i];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:43:11: warning: array subscript 3 is outside array bounds of 'int [0]' [-Warray-bounds]
43 | ans[3]=c[1];
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:56:13: warning: array subscript i is outside array bounds of 'int [0]' [-Warray-bounds]
56 | if (ans[i]>ans[j])
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:56:20: warning: array subscript j is outside array bounds of 'int [0]' [-Warray-bounds]
56 | if (ans[i]>ans[j])
| ~~~~~^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~
cyberland.cpp:58:15: warning: array subscript i is outside array bounds of 'int [0]' [-Warray-bounds]
58 | swap(ans[i],ans[j]);
| ~~~~~^
cyberland.cpp:58:22: warning: array subscript j is outside array bounds of 'int [0]' [-Warray-bounds]
58 | swap(ans[i],ans[j]);
| ~~~~~^
cyberland.cpp:62:13: warning: array subscript 3 is outside array bounds of 'int [0]' [-Warray-bounds]
62 | cout<<ans[3];
| ^
cyberland.cpp:8:6: note: while referencing 'ans'
8 | int ans[0];
| ^~~