fork download
  1. proc solve(): int =
  2. var
  3. N = readLine(stdin).toInt()
  4.  
  5. return N
  6.  
  7. echo(solve)
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
5
compilation info
prog.nim(3, 24) Error: type mismatch: got (string)
but expected one of: 
toInt(f: float): int

stdout
Standard output is empty