0_0_31907542_25945.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_31907542_25945.cpp:2:2: error: expected unqualified-id before 'public'
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int tao = 1; int N = sc.nextInt(); for (int i = 2; i <= N; i++) { tao = (tao + 1) * 2; } System.out.println(tao); } } }
^
|