F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_26287178_2502\Main.java:2: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_26287178_2502\Main.java:2: 错误: 需要class, interface或enum
#include <stdio.h>
         ^
0_0_26287178_2502\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_26287178_2502\Main.java:4: 错误: 非法字符: '#'
#include <stdlib.h>
^
0_0_26287178_2502\Main.java:5: 错误: 非法字符: '#'
#include <iostream>
^
0_0_26287178_2502\Main.java:6: 错误: 非法字符: '#'
#include <math.h>
^
0_0_26287178_2502\Main.java:7: 错误: 非法字符: '#'
#include <iomanip>
^
0_0_26287178_2502\Main.java:8: 错误: 非法字符: '#'
#define EPS 1e-4
^
0_0_26287178_2502\Main.java:9: 错误: 非法字符: '#'
#define PI acos(-1.0)
^
0_0_26287178_2502\Main.java:18: 错误: 非法的类型开始
public:
      ^
0_0_26287178_2502\Main.java:18: 错误: 需要';'
public:
       ^
0_0_26287178_2502\Main.java:19: 错误: 非法的类型开始
    Calculus(function<double(double x)> &fun,double a,double b,double e);
            ^
0_0_26287178_2502\Main.java:19: 错误: 需要';'
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                     ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                      ^
0_0_26287178_2502\Main.java:19: 错误: 非法的类型开始
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                            ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                             ^
0_0_26287178_2502\Main.java:19: 错误: 需要'('
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                    ^
0_0_26287178_2502\Main.java:19: 错误: 非法的类型开始
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                     ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                      ^
0_0_26287178_2502\Main.java:19: 错误: 需要';'
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                       ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                            ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                             ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                                     ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                                      ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                                              ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                                               ^
0_0_26287178_2502\Main.java:19: 错误: 需要<标识符>
    Calculus(function<double(double x)> &fun,double a,double b,double e);
                                                                       ^
0_0_26287178_2502\Main.java:21: 错误: 非法的类型开始
private:
       ^
0_0_26287178_2502\Main.java:21: 错误: 需要';'
private:
        ^
0_0_26287178_2502\Main.java:22: 错误: 需要<标识符>
    function<double(double x)> f;
             ^
0_0_26287178_2502\Main.java:22: 错误: 非法的类型开始
    function<double(double x)> f;
                   ^
0_0_26287178_2502\Main.java:22: 错误: 需要<标识符>
    function<double(double x)> f;
                    ^
0_0_26287178_2502\Main.java:22: 错误: 需要'('
    function<double(double x)> f;
                           ^
0_0_26287178_2502\Main.java:22: 错误: 非法的类型开始
    function<double(double x)> f;
                            ^
0_0_26287178_2502\Main.java:22: 错误: 需要<标识符>
    function<double(double x)> f;
                             ^
0_0_26287178_2502\Main.java:22: 错误: 需要';'
    function<double(double x)> f;
                              ^
0_0_26287178_2502\Main.java:26: 错误: 需要class, interface或enum
Calculus::Calculus(function<double(double x)> &fun,double a,double b,double e)
^
0_0_26287178_2502\Main.java:29: 错误: 需要class, interface或enum
    this->low=a;
    ^
0_0_26287178_2502\Main.java:30: 错误: 需要class, interface或enum
    this->high=b;
    ^
0_0_26287178_2502\Main.java:31: 错误: 需要class, interface或enum
    this->eps=e;
    ^
0_0_26287178_2502\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_26287178_2502\Main.java:40: 错误: 需要class, interface或enum
    int n=1,k,m=1;
    ^
0_0_26287178_2502\Main.java:41: 错误: 需要class, interface或enum
    h=high-low;
    ^
0_0_26287178_2502\Main.java:42: 错误: 需要class, interface或enum
    T1=0.5*h*(f(high)+f(low));
    ^
0_0_26287178_2502\Main.java:43: 错误: 需要class, interface或enum
    while(m<=10)
    ^
0_0_26287178_2502\Main.java:46: 错误: 需要class, interface或enum
        for(k=0;k<n;k++)
        ^
0_0_26287178_2502\Main.java:46: 错误: 需要class, interface或enum
        for(k=0;k<n;k++)
                ^
0_0_26287178_2502\Main.java:46: 错误: 需要class, interface或enum
        for(k=0;k<n;k++)
                    ^
0_0_26287178_2502\Main.java:49: 错误: 需要class, interface或enum
            sum=sum+f(x);
            ^
0_0_26287178_2502\Main.java:50: 错误: 需要class, interface或enum
        }
        ^
0_0_26287178_2502\Main.java:52: 错误: 需要class, interface或enum
        h=h*0.5;
        ^
0_0_26287178_2502\Main.java:53: 错误: 需要class, interface或enum
        T2=0.5*(T1+2*h*sum);
        ^
0_0_26287178_2502\Main.java:54: 错误: 需要class, interface或enum
        S1=(4*T2-T1)/3;
        ^
0_0_26287178_2502\Main.java:55: 错误: 需要class, interface或enum
        if(m==1)
        ^
0_0_26287178_2502\Main.java:58: 错误: 需要class, interface或enum
            ++m;
            ^
0_0_26287178_2502\Main.java:59: 错误: 需要class, interface或enum
            continue;
            ^
0_0_26287178_2502\Main.java:60: 错误: 需要class, interface或enum
        }
        ^
0_0_26287178_2502\Main.java:62: 错误: 需要class, interface或enum
        C1=(16*S2-S1)/15;
        ^
0_0_26287178_2502\Main.java:63: 错误: 需要class, interface或enum
        if(m==2)
        ^
0_0_26287178_2502\Main.java:66: 错误: 需要class, interface或enum
            T1=T2;
            ^
0_0_26287178_2502\Main.java:67: 错误: 需要class, interface或enum
            ++m;
            ^
0_0_26287178_2502\Main.java:68: 错误: 需要class, interface或enum
            continue;
            ^
0_0_26287178_2502\Main.java:69: 错误: 需要class, interface或enum
        }
        ^
0_0_26287178_2502\Main.java:71: 错误: 需要class, interface或enum
        C2=(16*S2-S1)/15;
        ^
0_0_26287178_2502\Main.java:72: 错误: 需要class, interface或enum
        if(m==3)
        ^
0_0_26287178_2502\Main.java:75: 错误: 需要class, interface或enum
            C1=C2;
            ^
0_0_26287178_2502\Main.java:76: 错误: 需要class, interface或enum
            S1=S2;
            ^
0_0_26287178_2502\Main.java:77: 错误: 需要class, interface或enum
            T1=T2;
            ^
0_0_26287178_2502\Main.java:78: 错误: 需要class, interface或enum
            ++m;
            ^
0_0_26287178_2502\Main.java:79: 错误: 需要class, interface或enum
            continue;
            ^
0_0_26287178_2502\Main.java:80: 错误: 需要class, interface或enum
        }
        ^
0_0_26287178_2502\Main.java:84: 错误: 需要class, interface或enum
            if(fabs(R2-R1)<eps)
            ^
0_0_26287178_2502\Main.java:86: 错误: 需要class, interface或enum
            R1=R2;
            ^
0_0_26287178_2502\Main.java:87: 错误: 需要class, interface或enum
            C1=C2;
            ^
0_0_26287178_2502\Main.java:88: 错误: 需要class, interface或enum
            S1=S2;
            ^
0_0_26287178_2502\Main.java:89: 错误: 需要class, interface或enum
            T1=T2;
            ^
0_0_26287178_2502\Main.java:90: 错误: 需要class, interface或enum
            ++m;
            ^
0_0_26287178_2502\Main.java:91: 错误: 需要class, interface或enum
        }
        ^
0_0_26287178_2502\Main.java:94: 错误: 需要class, interface或enum
}
^
0_0_26287178_2502\Main.java:99: 错误: 需要class, interface或enum
    cin>>i_sample;
    ^
0_0_26287178_2502\Main.java:100: 错误: 需要class, interface或enum
    while(i_sample--)
    ^
0_0_26287178_2502\Main.java:103: 错误: 需要class, interface或enum
        cin>>a>>b;
        ^
0_0_26287178_2502\Main.java:104: 错误: 需要class, interface或enum
        function<double(double x)>f=[a,b](double x){ return sqrt(a*a-x*x)*sqrt(b*b-x*x); };
        ^
0_0_26287178_2502\Main.java:104: 错误: 需要class, interface或enum
        function<double(double x)>f=[a,b](double x){ return sqrt(a*a-x*x)*sqrt(b*b-x*x); };
                                                                                         ^
0_0_26287178_2502\Main.java:105: 错误: 需要class, interface或enum
        Calculus romberg(f,0,a,EPS);


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-05 00:05:47, Gzip enabled