//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract TeamManagement { struct Team { uint16[11] players; // EXPENSIVE! int16 pointsDiff; uint8 budget; } Team[] public teams; mapping (uint256 => address) public teamIndexToOwner; function addTeam(uint16[11] players) public { uint256 _newTeamId = teams.push(Team({ players: players, pointsDiff: 0, budget: 3 })); teamIndexToOwner[_newTeamId] = msg.sender; } }
0.4.18