Question: In this C++ code I am getting an error in Codeblocks saying range-based for loops are not allowed in C++ 98 mode in the last
In this C++ code I am getting an error in Codeblocks saying "range-based for loops are not allowed in C++ 98 mode"
in the last for loop " for (int i : selected) { "
What do i need to change to make this run? Thank you
INPUT DATA:
11 1 1 4 2 3 5 3 0 6 4 5 7 5 3 9 6 5 9 7 6 10 8 8 11 9 8 12 10 2 14 11 12 16 3 3 6 8 1 7 9 2 1 2
CODE:
#include
int main() { freopen("act.txt", "r", stdin); int t = 1, a, s, e, setno = 1; while (cin >> t) { vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
