0_0_17238132_22276.cpp: In function 'int main()':
0_0_17238132_22276.cpp:29:10: error: invalid initialization of reference of type 'int&' from expression of type 'long long int'
rd(A[i]);sum[i]=sum[i-1]+A[i];
^
0_0_17238132_22276.cpp:7:13: note: in passing argument 1 of 'void rd(int&)'
inline void rd(int &res){
^
0_0_17238132_22276.cpp:42:3: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_17238132_22276.cpp:42:14: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|