fork download
  1. Function Sint (value as Long) as Integer
  2.  
  3. Sint = (value AND &H7FFF)
  4.  
  5. If (value > 32767) Then
  6. Sint = (Sint OR &H8000)
  7. End If
  8.  
  9. Exit Function
  10.  
  11. Sint(18445681309896863050)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/Jgu5jw/prog.vb (1,10) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (3,8) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (5,6) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (6,10) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (7,10) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (9,5) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (11,5) : Error VBNC30203: Not valid as identifier.
/home/Jgu5jw/prog.vb (11,26) : Error VBNC30036: Overflow.
There were 8 errors and 0 warnings.
Compilation took 00:00:00.6407400
stdout
Standard output is empty