esp8266 connect when starting to which AP?

I tried this:

    String ssid_s;

    m = WiFi.scanNetworks(); //Return network count.
    if (m > 0) //Networks found
    {
        for (i = 0; i < m; i++) //Check if ssid compares
        {
            ssid_s = WiFi.SSID(i); // <== Still marked with the bomb and invalid arguments
            ....

I thought that Sloeber is not able to correctly parse out the indexed version of the WiFi properties...
In that case maybe some update to an iclude file or similar would have helped, but which?