prog.cpp: In function ‘void runEratosthenesSieve(int)’:
prog.cpp:2:62: error: ‘sqrt’ was not declared in this scope
int upperBoundSquareRoot = (int)sqrt((double)upperBound);
^
prog.cpp:4:61: error: ‘memset’ was not declared in this scope
memset(isComposite, 0, sizeof(bool) * (upperBound + 1));
^
prog.cpp:7:19: error: ‘cout’ was not declared in this scope
cout << m << " ";
^~~~
prog.cpp:14:19: error: ‘cout’ was not declared in this scope
cout << m << " ";
^~~~