using namespace std;
int main() {
const int minutesPerHour;
minutesPerHour = 60;
cout << minutesPerHour;
return 0;
}
prog.cpp: In function ‘int main()’: prog.cpp:5:13: error: uninitialized const ‘minutesPerHour’ [-fpermissive] 5 | const int minutesPerHour; | ^~~~~~~~~~~~~~ prog.cpp:6:18: error: assignment of read-only variable ‘minutesPerHour’ 6 | minutesPerHour = 60; | ~~~~~~~~~~~~~~~^~~~