prog.cpp: In function ‘int main()’:
prog.cpp:10:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto i = 1+1.1;
^
prog.cpp:10:10: error: ‘i’ does not name a type
auto i = 1+1.1;
^
prog.cpp:20:23: error: ‘i’ was not declared in this scope
cout<<a[1]<<endl<<i;
^
prog.cpp:11:9: warning: unused variable ‘arr’ [-Wunused-variable]
int arr[10] = {1};
^