I am trying to compile following on Remix IDE:
pragma solidity ^0.5.1;
contract testArray{
address addr;
function testA(uint _addr, uint[] emp) public{
addr = _addr;
for(uint i=0; i<emp.length; ++i){
addr.send(emp[i].value);
}
}
}
I am getting following error:
browser/arr.sol:4:31: TypeError: Data location must be "memory" for parameter in function, but none was given. function testA(uint _addr, uint[] emp) public{ ^--------^ Somebody please guide me.