Expected ; but got 'event'

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm newbie of solidity develop flatform, when I do a example from solidity document at Remix IDE, I have a error with my event and I don't know how to fix it, here my code:



contract Coin 
address public minter;

mapping (address => uint) public banlances


event Sent (address from, address to , uint amount);


constructor() public
minter = msg.sender;

function mint(address recevier, uint amount) public
require(msg.sender == minter)
require(amount < 1e60);
banlances[recevier] += amount;












share|improve this question



























    up vote
    0
    down vote

    favorite












    I'm newbie of solidity develop flatform, when I do a example from solidity document at Remix IDE, I have a error with my event and I don't know how to fix it, here my code:



    contract Coin 
    address public minter;

    mapping (address => uint) public banlances


    event Sent (address from, address to , uint amount);


    constructor() public
    minter = msg.sender;

    function mint(address recevier, uint amount) public
    require(msg.sender == minter)
    require(amount < 1e60);
    banlances[recevier] += amount;












    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm newbie of solidity develop flatform, when I do a example from solidity document at Remix IDE, I have a error with my event and I don't know how to fix it, here my code:



      contract Coin 
      address public minter;

      mapping (address => uint) public banlances


      event Sent (address from, address to , uint amount);


      constructor() public
      minter = msg.sender;

      function mint(address recevier, uint amount) public
      require(msg.sender == minter)
      require(amount < 1e60);
      banlances[recevier] += amount;












      share|improve this question















      I'm newbie of solidity develop flatform, when I do a example from solidity document at Remix IDE, I have a error with my event and I don't know how to fix it, here my code:



      contract Coin 
      address public minter;

      mapping (address => uint) public banlances


      event Sent (address from, address to , uint amount);


      constructor() public
      minter = msg.sender;

      function mint(address recevier, uint amount) public
      require(msg.sender == minter)
      require(amount < 1e60);
      banlances[recevier] += amount;









      solidity






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 30 at 18:30









      Ismael

      13k42345




      13k42345










      asked Sep 28 at 3:04









      vĩ vũ

      41




      41




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote













          Put a ; at the end of the first line.



          Also third to last line.






          share|improve this answer




















          • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
            – vÄ© vÅ©
            Sep 28 at 4:45










          • my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
            – vÄ© vÅ©
            Sep 28 at 4:45










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            Sep 28 at 5:38










          • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
            – vÄ© vÅ©
            Sep 28 at 6:42










          • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
            – Rob Hitchens
            Sep 28 at 15:15










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "642"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f59620%2fexpected-but-got-event%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote













          Put a ; at the end of the first line.



          Also third to last line.






          share|improve this answer




















          • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
            – vÄ© vÅ©
            Sep 28 at 4:45










          • my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
            – vÄ© vÅ©
            Sep 28 at 4:45










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            Sep 28 at 5:38










          • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
            – vÄ© vÅ©
            Sep 28 at 6:42










          • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
            – Rob Hitchens
            Sep 28 at 15:15














          up vote
          5
          down vote













          Put a ; at the end of the first line.



          Also third to last line.






          share|improve this answer




















          • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
            – vÄ© vÅ©
            Sep 28 at 4:45










          • my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
            – vÄ© vÅ©
            Sep 28 at 4:45










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            Sep 28 at 5:38










          • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
            – vÄ© vÅ©
            Sep 28 at 6:42










          • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
            – Rob Hitchens
            Sep 28 at 15:15












          up vote
          5
          down vote










          up vote
          5
          down vote









          Put a ; at the end of the first line.



          Also third to last line.






          share|improve this answer












          Put a ; at the end of the first line.



          Also third to last line.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 28 at 3:09









          Rob Hitchens

          22.7k43571




          22.7k43571











          • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
            – vÄ© vÅ©
            Sep 28 at 4:45










          • my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
            – vÄ© vÅ©
            Sep 28 at 4:45










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            Sep 28 at 5:38










          • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
            – vÄ© vÅ©
            Sep 28 at 6:42










          • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
            – Rob Hitchens
            Sep 28 at 15:15
















          • thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
            – vÄ© vÅ©
            Sep 28 at 4:45










          • my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
            – vÄ© vÅ©
            Sep 28 at 4:45










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            Sep 28 at 5:38










          • but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
            – vÄ© vÅ©
            Sep 28 at 6:42










          • You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
            – Rob Hitchens
            Sep 28 at 15:15















          thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
          – vÄ© vÅ©
          Sep 28 at 4:45




          thank you so much, by the way do you know about error: Data location must be memory for parameter in function, but none was given when I work with type string at solidity
          – vÄ© vÅ©
          Sep 28 at 4:45












          my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
          – vÄ© vÅ©
          Sep 28 at 4:45




          my code: contract Coursetro string public fName; uint public age; function setInstructor(string _fName, uint _age) public fName = _fName; age = _age; function getInstructor() public view returns (string, uint) return (fName, age);
          – vÄ© vÅ©
          Sep 28 at 4:45












          I pasted that into Remix and it compiled without error.
          – Rob Hitchens
          Sep 28 at 5:38




          I pasted that into Remix and it compiled without error.
          – Rob Hitchens
          Sep 28 at 5:38












          but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
          – vÄ© vÅ©
          Sep 28 at 6:42




          but when I put it into remix, this error happen again, I know it's impolite but can I take your contact like telegram or facebook, so I can capture my computer picture and show you explicitly, Sorry about many question and thanks you for your help
          – vÄ© vÅ©
          Sep 28 at 6:42












          You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
          – Rob Hitchens
          Sep 28 at 15:15




          You should post the details as a new question, with code we can copy/paste/edit and a picture if it helps describe the problem.
          – Rob Hitchens
          Sep 28 at 15:15

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f59620%2fexpected-but-got-event%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?