mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-03 18:43:52 +08:00
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);
|
||
}
|