0_0_29725073_9447.cpp: In function 'int main()': 0_0_29725073_9447.cpp:10:29: error: 'i' was not declared in this scope cout << "Case #" << i + 1 << ": " << data[i] - 1 << ".0000000000" << endl; ^