1 2 3 4 5 6
#include<stdio.h> int main(void) { return x; }
↓↓↓
1 2 3 4
// error.c: In function ‘main’: // error.c:5: error: ‘x’ undeclared (first use in this function) // error.c:5: error: (Each undeclared identifier is reported only once // error.c:5: error: for each function it appears in.)