79355555

Date: 2025-01-14 15:53:04
Score: 1.5
Natty:
Report link

Hi There's a simple way to do this and it doesn't scale with array size `

 vector<Element> array = {1,2,3,4,5}; // example array
 vector<Element>::iterator it;
 it = array.begin();
 cout << ((it+wantednumberindex))->number << "\n"; // prints wanted number

`

Reasons:
  • Blacklisted phrase (0.5): Hi There
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ziad Alaoui