0_0_31876841_28130.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_31876841_28130.cpp:3:12: error: expected ':' before 'static'
public static void main(String[] args){
^
0_0_31876841_28130.cpp:3:29: error: 'String' has not been declared
public static void main(String[] args){
^
0_0_31876841_28130.cpp:3:38: error: expected ',' or '...' before 'args'
public static void main(String[] args){
^
0_0_31876841_28130.cpp:22:1: error: expected ';' after class definition
}
^
0_0_31876841_28130.cpp: In static member function 'static void h2036::main(int*)':
0_0_31876841_28130.cpp:5:9: error: 'Scanner' was not declared in this scope
Scanner sc=new Scanner(System.in);
^
0_0_31876841_28130.cpp:6:15: error: 'sc' was not declared in this scope
while(sc.hasNext()){
^
0_0_31876841_28130.cpp:9:16: error: expected unqualified-id before '[' token
int[] x=new int[n];
^
0_0_31876841_28130.cpp:10:16: error: expected unqualified-id before '[' token
int[] y=new int[n];
^
0_0_31876841_28130.cpp:11:17: error: 'i' was not declared in this scope
for(i=0; i<n; i++)
^
0_0_31876841_28130.cpp:12:14: error: 'x' was not declared in this scope
{x[i]=sc.nextInt();y[i]=sc.nextInt();}
^
0_0_31876841_28130.cpp:12:32: error: 'y' was not declared in this scope
{x[i]=sc.nextInt();y[i]=sc.nextInt();}
^
0_0_31876841_28130.cpp:16:22: error: 'x' was not declared in this scope
area+=x[i]*y[i+1]-x[i+1]*y[i];
^
0_0_31876841_28130.cpp:16:27: error: 'y' was not declared in this scope
area+=x[i]*y[i+1]-x[i+1]*y[i];
^
0_0_31876841_28130.cpp:17:19: error: 'x' was not declared in this scope
area+=x[i]*y[0]-x[0]*y[i];
^
0_0_31876841_28130.cpp:17:24: error: 'y' was not declared in this scope
area+=x[i]*y[0]-x[0]*y[i];
^
0_0_31876841_28130.cpp:18:13: error: 'Syatem' was not declared in this scope
Syatem.out.println("%.1f",area/2);
^
|