12 lines
170 B
C++
12 lines
170 B
C++
#include<iostream>
|
||
using namespace std;
|
||
|
||
void f(const int i){
|
||
i=10; // error: assignment of read-only parameter ‘i’
|
||
cout<<i<<endl;
|
||
}
|
||
|
||
int main(){
|
||
f(1);
|
||
}
|