Main.cc: In function ‘void solve(int, int, int, int*)’:
Main.cc:16:5: error: expected ‘;’ before ‘int’
int res=0;
^~~
Main.cc:22:37: error: ‘res’ was not declared in this scope
if (temp>=l && temp<=r) res++;
^~~
Main.cc:25:11: error: ‘res’ was not declared in this scope
cout<