'Solidity on Remix IDE- Parser Error - Expected Identifier but got 'Number'

ParserError on uint 256- Expected Identifier but got 'Number'

contract SimpleStorage {
    //this will get initialized to 0
    uint256 favoriteNumber;

    struct People {
        uint 256 favoriteNumber;
        string name;
    }


Solution 1:[1]

You have a typo in your code - an extra space at the favoriteNumber definition.

Replace uint 256 to uint256

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Petr Hejda