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;
^
|