Main.cc: In function ‘bool check(int)’: Main.cc:9:22: error: ‘n’ was not declared in this scope for(int i = 1; i <= n + 1; i++) ^ Main.cc:16:16: error: ‘m’ was not declared in this scope return sum <= m; ^ Main.cc: In function ‘int main()’: Main.cc:24:13: error: ‘l’ was not declared in this scope a[n + 1] = l; ^ Main.cc:25:2: error: ‘r’ was not declared in this scope r = l + 1; ^