Expected ; but got 'event'

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











up vote
1
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







New contributor




vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    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







    New contributor




    vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      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







      New contributor




      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      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







      New contributor




      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      vĩ vũ

      61




      61




      New contributor




      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      vĩ vũ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          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Å©
            2 hours ago










          • 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Å©
            2 hours ago










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            1 hour ago










          • 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Å©
            27 mins ago










          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
          );



          );






          vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.









           

          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
          3
          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Å©
            2 hours ago










          • 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Å©
            2 hours ago










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            1 hour ago










          • 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Å©
            27 mins ago














          up vote
          3
          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Å©
            2 hours ago










          • 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Å©
            2 hours ago










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            1 hour ago










          • 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Å©
            27 mins ago












          up vote
          3
          down vote










          up vote
          3
          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 3 hours ago









          Rob Hitchens

          22.5k43571




          22.5k43571











          • 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Å©
            2 hours ago










          • 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Å©
            2 hours ago










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            1 hour ago










          • 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Å©
            27 mins ago
















          • 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Å©
            2 hours ago










          • 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Å©
            2 hours ago










          • I pasted that into Remix and it compiled without error.
            – Rob Hitchens
            1 hour ago










          • 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Å©
            27 mins ago















          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Å©
          2 hours ago




          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Å©
          2 hours ago












          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Å©
          2 hours ago




          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Å©
          2 hours ago












          I pasted that into Remix and it compiled without error.
          – Rob Hitchens
          1 hour ago




          I pasted that into Remix and it compiled without error.
          – Rob Hitchens
          1 hour ago












          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Å©
          27 mins ago




          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Å©
          27 mins ago










          vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.












          vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.











          vĩ vũ is a new contributor. Be nice, and check out our Code of Conduct.













           


          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













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery