Code has been added to clipboard!

Code on Array Error in Solidity

Example
pragma solidity >=0.4.0 <0.7.0;

contract C {
    function f() public {
        uint[] memory x = [uint(1), 3, 4];
    }
}