online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ public class Main { public static long getUniqueId(double lat,double lon) { long lat_int = (long) (lat * 10_000_000); long lon_int = (long) (lon * 10_000_000); long latMask = lat_int > 0x7FFF0000L ? 0x1ffff0000L : 0xffff0000L; long val=Math.abs((lat_int << 16 & latMask) | lon_int & 0x0000ffff); val = val % Integer.MAX_VALUE; System.out.println(val); return val; } public static void main(String[] args) { getUniqueId(44.3252130,-79.6794917); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



Program is not being debugged. Click "Debug" button to start program in debug mode.