prog.cpp: In function ‘int F(int)’:
prog.cpp:13:10: error: ‘val’ was not declared in this scope
glob = val; // ΣΦΑΛΜΑ
^~~
prog.cpp: In function ‘int main()’:
prog.cpp:23:11: error: ‘num’ was not declared in this scope
cout << num << endl; // ΣΦΑΛΜΑ
^~~
prog.cpp:24:11: error: ‘x’ was not declared in this scope
cout << x << endl; // ΣΦΑΛΜΑ
^