Main.cc: In function ‘int main()’: Main.cc:7:30: error: no match for ‘operator>>’ (operand types are ‘std::istream {aka std::basic_istream}’ and ‘int [a]’) for (int i=0;i>b; ~~~^~~ In file included from /usr/include/c++/7/iostream:40:0, from Main.cc:1: /usr/include/c++/7/istream:168:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream] operator>>(bool& __n) ^~~~~~~~ /usr/include/c++/7/istream:168:7: note: conversion of argument 1 would be ill-formed: Main.cc:7:32: error: cannot bind non-const lvalue reference of type ‘bool&’ to an rvalue of type ‘bool’ for (int i=0;i