foo.cpp: In function 'void out(int)':
foo.cpp:23:3: error: 'i' was not declared in this scope
foo.cpp:23:8: error: 'r' was not declared in this scope
foo.cpp:24:1: error: expected ';' before 'printf'
foo.cpp: In function 'int main()':
foo.cpp:31:3: error: 'i' was not declared in this scope
foo.cpp:31:8: error: 'r' cannot be used as a function
foo.cpp:31:9: error: expected ';' before '{' token
foo.cpp:30:5: warning: unused variable 'l' [-Wunused-variable]
foo.cpp:69:1: error: expected '}' at end of input