Skip to content

Instantly share code, notes, and snippets.

Created Sep 12, 2011
What would you like to do?
do not fuck with
ra:~ ryan$ nl scope.c
1 int main() {
2 int c = 0;
3 if (1) {
4 int i = 0;
5 }
6 c = 5;
7 i = 10;
8 }
ra:~ ryan$ gcc scope.c -o scope
scope.c: In function ‘main’:
scope.c:9: error: ‘i’ undeclared (first use in this function)
scope.c:9: error: (Each undeclared identifier is reported only once
scope.c:9: error: for each function it appears in.)
ra:~ ryan$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment