0_0_30380034_29999.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_30380034_29999.cpp:2:1: error: 'import' does not name a type
import java.math.*;
^
0_0_30380034_29999.cpp:5:5: error: 'BigInteger' does not name a type
BigInteger a, b;
^
0_0_30380034_29999.cpp:6:12: error: expected ':' before 'fraction'
public fraction(){
^
0_0_30380034_29999.cpp:11:26: error: expected ')' before 'a0'
fraction( BigInteger a0, BigInteger b0){
^
0_0_30380034_29999.cpp:44:12: error: expected ':' before 'void'
public void abs(){
^
0_0_30380034_29999.cpp:57:5: error: 'boolean' does not name a type
boolean biger( fraction p ){
^
0_0_30380034_29999.cpp:72:1: error: expected ';' after class definition
}
^
0_0_30380034_29999.cpp: In constructor 'fraction::fraction()':
0_0_30380034_29999.cpp:7:9: error: 'a' was not declared in this scope
a = new BigInteger("0");
^
0_0_30380034_29999.cpp:7:17: error: expected type-specifier before 'BigInteger'
a = new BigInteger("0");
^
0_0_30380034_29999.cpp:8:9: error: 'b' was not declared in this scope
b = new BigInteger("1");
^
0_0_30380034_29999.cpp:8:17: error: expected type-specifier before 'BigInteger'
b = new BigInteger("1");
^
0_0_30380034_29999.cpp: In member function 'void fraction::reduction()':
0_0_30380034_29999.cpp:15:9: error: 'BigInteger' was not declared in this scope
BigInteger tmp = a.gcd( b );
^
0_0_30380034_29999.cpp:16:9: error: 'a' was not declared in this scope
a = a.divide( tmp );
^
0_0_30380034_29999.cpp:16:23: error: 'tmp' was not declared in this scope
a = a.divide( tmp );
^
0_0_30380034_29999.cpp:17:9: error: 'b' was not declared in this scope
b = b.divide( tmp );
^
0_0_30380034_29999.cpp: In member function 'fraction fraction::add(fraction)':
0_0_30380034_29999.cpp:25:38: error: 'a' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ).add( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:25:52: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.b ).add( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:25:61: error: 'b' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ).add( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:25:75: error: 'class fraction' has no member named 'a'
fraction tmp = new fraction( a.multiply( t.b ).add( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:25:95: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.b ).add( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp: In member function 'fraction fraction::sub(fraction)':
0_0_30380034_29999.cpp:30:38: error: 'a' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ).subtract( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:30:52: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.b ).subtract( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:30:66: error: 'b' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ).subtract( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:30:80: error: 'class fraction' has no member named 'a'
fraction tmp = new fraction( a.multiply( t.b ).subtract( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp:30:100: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.b ).subtract( b.multiply( t.a )) , b.multiply(t.b) );
^
0_0_30380034_29999.cpp: In member function 'fraction fraction::mult(fraction)':
0_0_30380034_29999.cpp:35:38: error: 'a' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.a ), b.multiply( t.b ));
^
0_0_30380034_29999.cpp:35:52: error: 'class fraction' has no member named 'a'
fraction tmp = new fraction( a.multiply( t.a ), b.multiply( t.b ));
^
0_0_30380034_29999.cpp:35:57: error: 'b' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.a ), b.multiply( t.b ));
^
0_0_30380034_29999.cpp:35:71: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.a ), b.multiply( t.b ));
^
0_0_30380034_29999.cpp: In member function 'fraction fraction::div(fraction)':
0_0_30380034_29999.cpp:40:38: error: 'a' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ), b.multiply( t.a ));
^
0_0_30380034_29999.cpp:40:52: error: 'class fraction' has no member named 'b'
fraction tmp = new fraction( a.multiply( t.b ), b.multiply( t.a ));
^
0_0_30380034_29999.cpp:40:57: error: 'b' was not declared in this scope
fraction tmp = new fraction( a.multiply( t.b ), b.multiply( t.a ));
^
0_0_30380034_29999.cpp:40:71: error: 'class fraction' has no member named 'a'
fraction tmp = new fraction( a.multiply( t.b ), b.multiply( t.a ));
^
0_0_30380034_29999.cpp: In member function 'void fraction::abs()':
0_0_30380034_29999.cpp:45:18: error: request for member 'a' in '(fraction*)this', which is of pointer type 'fraction*' (maybe you meant to use '->' ?)
if( this.a.compareTo( BigInteger.ZERO ) == - 1 ){
^
0_0_30380034_29999.cpp:45:31: error: 'BigInteger' was not declared in this scope
if( this.a.compareTo( BigInteger.ZERO ) == - 1 ){
^
0_0_30380034_29999.cpp:46:18: error: request for member 'a' in '(fraction*)this', which is of pointer type 'fraction*' (maybe you meant to use '->' ?)
this.a = this.a.multiply( BigInteger.valueOf( -1 ));
^
0_0_30380034_29999.cpp:46:27: error: request for member 'a' in '(fraction*)this', which is of pointer type 'fraction*' (maybe you meant to use '->' ?)
this.a = this.a.multiply( BigInteger.valueOf( -1 ));
^
0_0_30380034_29999.cpp: In member function 'void fraction::out()':
0_0_30380034_29999.cpp:50:14: error: request for member 'reduction' in '(fraction*)this', which is of pointer type 'fraction*' (maybe you meant to use '->' ?)
this.reduction();
^
0_0_30380034_29999.cpp:51:13: error: 'b' was not declared in this scope
if( b.compareTo( BigInteger.ONE ) == 0 )
^
0_0_30380034_29999.cpp:51:26: error: 'BigInteger' was not declared in this scope
if( b.compareTo( BigInteger.ONE ) == 0 )
^
0_0_30380034_29999.cpp:52:13: error: 'System' was not declared in this scope
System.out.println(a);
^
0_0_30380034_29999.cpp:52:32: error: 'a' was not declared in this scope
System.out.println(a);
^
0_0_30380034_29999.cpp:54:13: error: 'System' was not declared in this scope
System.out.println(a+"/"+b);
^
0_0_30380034_29999.cpp:54:32: error: 'a' was not declared in this scope
System.out.println(a+"/"+b);
^
0_0_30380034_29999.cpp: At global scope:
0_0_30380034_29999.cpp:74:1: error: expected unqualified-id before 'public'
public class Main{
^
|