what's the problem?
E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp||In function 'int main()':|
E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp|36|error: invalid use of member (did you forget the '&' ?)|
||=== Build finished: 1 errors, 0 warnings ===|
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
// informed user
cout << "Please insert several amount of number: /n";
// input
int inputs;
vector<int> numstore;
while (cin >> inputs)
numstore.push_back(inputs);
// re-arrange element in vector.
sort(numstore.begin(), numstore.end());
// formed a loop that iterate through each ele in (numstore)
const int quadro = 4;
int quartiles = 1;
vector<double> quaele;
for (vector<int>::size_type counter = 0; (quartiles == quadro) || (counter < numstore.size()); ++counter)
if (counter == (quartiles/quadro * numstore.size()))
{
quaele.push_back(numstore[counter]);
if ((quartiles == 2) && (numstore.size / 2 == 0))
quaele[quartiles-1] = (numstore[counter]+numstore[counter-1]) / 2;
++quartiles;
}
// outputting
streamsize prec = cout.precision();
cout << "Your final grade is: /n" << setprecision(3);
for (vector<double>::size_type counter = 0; counter < quaele.size(); ++counter)
cout << quaele[counter] << "/n";
cout << setprecision(prec) << endl;
// success indicator
return 0;
}