C++
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- takezoh
- まろ
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- @tyottyoworks
- ___shanon
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
12
1
2
int main(){
3
4
int *&r = ip, *ip;
5
const int y = 50;
6
int x = 50 + y;
7
std::cout << x << " ";
8
std::cout << r << " " << *ip;
9
return 0;
10
11
}
12
$ g++ prog.cc -Wall -Wextra -std=c++98 -pedantic
Start
prog.cc: In function 'int main()': prog.cc:4:15: error: 'ip' was not declared in this scope 4 | int *&r = ip, *ip; | ^~
1
Finish