Just started coding with solidity and don’t know what’s the problem with my code, if anyone could help please. Thanks.
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Counter {
uint[] public numeros = [1, 2, 3, 4, 5];
function countnumbers(uint counter) public view return(uint){
counter = 0;
for (i = 0, i > numeros.lenght, 1++){
if (numeros(0) % 2 != 0){
counter ++ ;
}
return counter
}
}
}