I'm using Remix IDE to compile a simple contract function. I'm fairly new to Solidity and have tried using different combinations of the compiler version and that of the parser solidity command. The problem still persists.
pragma solidity ˆ0.4.0;
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() contsant public returns (uint) {
return storedData;
}
funtion increment (uint n) public {
storedData = storedData + n;
}
funtion decrement (uint n) public {
storedData = storedData - n;
}
None of the older answers to similar questions has solved my issue.
The error: