1
私は投票のための契約を書いており、引用エラーとして少数の宣言エラーに直面していますDeclarationError: Identifier not found or not unique. Voter[] public voters; ^---^
これは私の完全なコードです。私は何が間違っているのか分かりません。詳細コードを訪問、私が最初過去ポスト投票スタイルのための投票用紙を作成しようとしていますhereコードの中でコンパイルエラーがスローされました
ため
contract Ballot {
int public majorityVotes;
Candidate[] public candidates;
mapping (address => uint) public voterId;
Voter[] public voters;
event CandidateAdded (uint candidateId, uint amount, string description);
event Voted (uint candidateId, int result, address voter);
event Tallyvotes (uint candidateId, int result, uint tally, bool active);
は、しかし、コンパイルは失敗します。私は誰かが間違いなく間違いを犯す可能性があることを願っています。