Yeah, what compiler?? I use GNU g++, and this is what happened when I tried to compile...
a.cpp:8:21: SDL/SDL.h: No such file or directory
a.cpp:17: error: expected constructor, destructor, or type conversion before '*' token
a.cpp:18: error: expected constructor, destructor, or type conversion before '*' token
a.cpp:19: error: expected constructor, destructor, or type conversion before '*' token
a.cpp:21: error: expected constructor, destructor, or type conversion before '*' token
a.cpp:43: error: `SDL_Surface' has not been declared
a.cpp:43: error: `SDL_Surface' has not been declared
a.cpp:43: error: ISO C++ forbids declaration of `source' with no type
a.cpp:43: error: ISO C++ forbids declaration of `destination' with no type
a.cpp: In function `void apply_surface(int, int, int*, int*)':
a.cpp:45: error: `SDL_Rect' was not declared in this scope
a.cpp:45: error: expected `;' before "offset"
a.cpp:48: error: `offset' was not declared in this scope
a.cpp:52: error: `SDL_BlitSurface' was not declared in this scope
a.cpp:45: warning: unused variable 'SDL_Rect'
a.cpp:52: warning: unused variable 'SDL_BlitSurface'
a.cpp: In function `int main(int, char**)':
a.cpp:57: error: `SDL_INIT_EVERYTHING' was not declared in this scope
a.cpp:57: error: `SDL_Init' was not declared in this scope
a.cpp:57: warning: unused variable 'SDL_INIT_EVERYTHING'
a.cpp:57: warning: unused variable 'SDL_Init'
a.cpp:61: error: `screen' was not declared in this scope
a.cpp:62: error: `SDL_SWSURFACE' was not declared in this scope
a.cpp:62: error: `SDL_SetVideoMode' was not declared in this scope
a.cpp:69: error: `SDL_WM_SetCaption' was not declared in this scope
a.cpp:72: error: `Hello' was not declared in this scope
a.cpp:72: error: `load_image' was not declared in this scope
a.cpp:73: error: `Background' was not declared in this scope
a.cpp:85: error: `SDL_Flip' was not declared in this scope
a.cpp:85: warning: unused variable 'SDL_Flip'
a.cpp:89: error: `SDL_Delay' was not declared in this scope
a.cpp:92: error: `SDL_FreeSurface' was not declared in this scope
a.cpp:96: error: `SDL_Quit' was not declared in this scope
a.cpp:62: warning: unused variable 'SDL_SWSURFACE'
a.cpp:62: warning: unused variable 'SDL_SetVideoMode'
a.cpp:69: warning: unused variable 'SDL_WM_SetCaption'
a.cpp:89: warning: unused variable 'SDL_Delay'
a.cpp:96: warning: unused variable 'SDL_Quit'
Also what OS do you use? I'm on windows right now, so that could have something to do with it.