Language: C++

import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:1:37: error: expected ':' before 'static'
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                     ^~~~~~~
      |                                     :
a.cc:1:55: error: 'String' has not been declared
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                       ^~~~~~
a.cc:1:63: error: expected ',' or '...' before 'g'
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                               ^
a.cc:1:218: error: expected ';' after class definition
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                                                                                                                                                                                          ^
      |                                                                                                                                                                                                                          ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:1:82: error: 'Scanner' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                                                  ^~~~~~~
a.cc:1:115: error: 'S' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                                                                                   ^
a.cc:1:127: error: 'System' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]g){float t,s,v;for(Scanner S=new Scanner(System.in);S.hasNext();System.out.printf("%d\n",(int)(4.9*t*t-5)/5))for(t=0,s=0,v=S.nextFloat();s<=v;t++)s+=9.8;}}
      |                                                                                                                               ^~~~~~