prog.cpp: In function 'void f(const Array&)':
prog.cpp:12:18: error: assignment of read-only location 'A.Array::Arr.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(0u)'
A.Arr[0] = 3; // why can the Arr[0], Arr[1] be changed the value ?
^
prog.cpp:13:18: error: assignment of read-only location 'A.Array::Arr.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(1u)'
A.Arr[1] = 4;
^
prog.cpp: At global scope:
prog.cpp:18:11: error: '::main' must return 'int'
void main()
^