proc solve(): int = var N = readLine(stdin).parseInt() return N echo(solve)
5
prog.nim(3, 24) Error: undeclared field: 'parseInt'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!