fork download
  1. import std.stdio;
  2. import std.conv;
  3.  
  4. int main()
  5. {
  6. string s=readln();
  7. int a=toInt(s);
  8. s=readln();
  9. int b=toInt(s);
  10. writef("%d",a+b);
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
3
compilation info
prog.d(7): Error: undefined identifier toInt
prog.d(7): Error: function expected before (), not toInt of type int
prog.d(9): Error: undefined identifier toInt
prog.d(9): Error: function expected before (), not toInt of type int
stdout
Standard output is empty