Language: Java

class InputReader {
    BufferedReader buf;
    StringTokenizer tok;

    public InputReader() {
        buf = new BufferedReader(new InputStreamReader(System.in));
//        try {
//            Path currentRelativePath = Paths.get("");
//            String s = currentRelativePath.toAbsolutePath().toString();
//            String curDir = System.getProperty("user.dir");
//            System.out.println("current dir: " + s);
//            buf = new BufferedReader(new FileReader("/Users/wangdong/Dropbox/LC_Java/src/test/resources/testA.txt"));
//        } catch (FileNotFoundException e) {
//            e.printStackTrace();
//        }
    }

    public boolean hasNext() {
        while (tok == null || !tok.hasMoreElements()) {
            try {
                tok = new StringTokenizer(buf.readLine());
            } catch (Exception e) {
                return false;
            }
        }
        return true;
    }

    public String next() {
        if (hasNext()) return tok.nextToken();
        return null;
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    public long nextLong() {
        return Long.parseLong(next());
    }

    public  Double nextDouble() {
        return Double.parseDouble(next());
    }

    public BigInteger nextBigInteger() {
        return new BigInteger(next());
    }

    public BigDecimal nextBigDecimal() {
        return new BigDecimal(next());
    }
}


class Main {
  public static void main(String[] args) {
        InputReader in = new InputReader();
        PrintWriter out = new PrintWriter(System.out);
        int n = in.nextInt();
       	out.println(2 * Math.pi * n);
        out.close();
    }
  
}

Compiler output:
Main.java:2: error: cannot find symbol
    BufferedReader buf;
    ^
  symbol:   class BufferedReader
  location: class InputReader
Main.java:3: error: cannot find symbol
    StringTokenizer tok;
    ^
  symbol:   class StringTokenizer
  location: class InputReader
Main.java:46: error: cannot find symbol
    public BigInteger nextBigInteger() {
           ^
  symbol:   class BigInteger
  location: class InputReader
Main.java:50: error: cannot find symbol
    public BigDecimal nextBigDecimal() {
           ^
  symbol:   class BigDecimal
  location: class InputReader
Main.java:6: error: cannot find symbol
        buf = new BufferedReader(new InputStreamReader(System.in));
                  ^
  symbol:   class BufferedReader
  location: class InputReader
Main.java:6: error: cannot find symbol
        buf = new BufferedReader(new InputStreamReader(System.in));
                                     ^
  symbol:   class InputStreamReader
  location: class InputReader
Main.java:21: error: cannot find symbol
                tok = new StringTokenizer(buf.readLine());
                          ^
  symbol:   class StringTokenizer
  location: class InputReader
Main.java:47: error: cannot find symbol
        return new BigInteger(next());
                   ^
  symbol:   class BigInteger
  location: class InputReader
Main.java:51: error: cannot find symbol
        return new BigDecimal(next());
                   ^
  symbol:   class BigDecimal
  location: class InputReader
Main.java:59: error: cannot find symbol
        PrintWriter out = new PrintWriter(System.out);
        ^
  symbol:   class PrintWriter
  location: class Main
Main.java:59: error: cannot find symbol
        PrintWriter out = new PrintWriter(System.out);
                              ^
  symbol:   class PrintWriter
  location: class Main
Main.java:61: error: cannot find symbol
       	out.println(2 * Math.pi * n);
       	                    ^
  symbol:   variable pi
  location: class Math
12 errors