pragma solidity ^0.4.0;
// delete an array of names
contract ArrayDelete {
string[] names;
function main() returns (string[]) {
names.push("Jones");
names.push("Ama");
names.push("Emeka");
names.push("Owo");
names.push("Lulu");
delete names[0];
return names;
}
}
Any ideas why this error occurs? None of the answers on similar questions was helpful in fixing this.