Main.cc: In function 'int main()': Main.cc:28:3: error: 't' was not declared in this scope t=arr[i]; ^