spa.cpp: In function 'void red(int&)':
spa.cpp:11:19: error: 'n' was not declared in this scope
11 | for(int i=0;i<n;i++)
| ^
spa.cpp: In function 'void df(int)':
spa.cpp:20:19: error: 'n' was not declared in this scope
20 | for(int i=0;i<n;i++)
| ^
spa.cpp: In function 'int main()':
spa.cpp:32:9: error: 'j' was not declared in this scope
32 | for(j=0; j<m; j++)
| ^
spa.cpp:34:13: error: 'k' was not declared in this scope
34 | red(k);
| ^
spa.cpp: At global scope:
spa.cpp:47:1: error: expected unqualified-id before 'return'
47 | return 0;
| ^~~~~~