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