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_33892752_18900.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_33892752_18900.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_33892752_18900.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_33892752_18900.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_33892752_18900.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_33892752_18900.cpp: In function 'double Imbalance()':
0_0_33892752_18900.cpp:39:28: error: 'fabs' was not declared in this scope
   ans += fabs(cell[i] - avg);
                            ^
0_0_33892752_18900.cpp: In function 'int main()':
0_0_33892752_18900.cpp:47:9: error: 'cin' was not declared in this scope
  while (cin >> C >> S)
         ^
0_0_33892752_18900.cpp:49:31: error: 'memset' was not declared in this scope
   memset(cell, 0, sizeof(cell));
                               ^
0_0_33892752_18900.cpp:59:4: error: 'cout' was not declared in this scope
    cout << "Set #" << ++Case << endl;
    ^
0_0_33892752_18900.cpp:59:33: error: 'endl' was not declared in this scope
    cout << "Set #" << ++Case << endl;
                                 ^
0_0_33892752_18900.cpp:64:30: error: 'fixed' was not declared in this scope
    cout << "IMBALANCE = " << fixed << setprecision(5) << Imbalance() << endl << endl;
                              ^
0_0_33892752_18900.cpp:64:53: error: 'setprecision' was not declared in this scope
    cout << "IMBALANCE = " << fixed << setprecision(5) << Imbalance() << endl << endl;
                                                     ^
0_0_33892752_18900.cpp:77:23: error: 'sort' was not declared in this scope
    sort(s, s + S, cmp1); //按照样本重量从大到小排序
                       ^
0_0_33892752_18900.cpp:89:4: error: 'cout' was not declared in this scope
    cout << "Set #" << ++Case << endl;
    ^
0_0_33892752_18900.cpp:89:33: error: 'endl' was not declared in this scope
    cout << "Set #" << ++Case << endl;
                                 ^
0_0_33892752_18900.cpp:115:30: error: 'fixed' was not declared in this scope
    cout << "IMBALANCE = " << fixed << setprecision(5) << Imbalance() << endl << endl;
                              ^
0_0_33892752_18900.cpp:115:53: error: 'setprecision' was not declared in this scope
    cout << "IMBALANCE = " << fixed << setprecision(5) << Imbalance() << endl << endl;
                                                     ^


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-11-25 07:55:26, Gzip enabled