setprecision not declared in this scope code example Example: ‘setprecision’ was not declared in this scope //You have to include header file #include <iomanip>