#include <iostream>
using namespace std;
void lemo(){
    int shamble;
}
int main(){
    lemo();
    shamble= 2;
    cout<<shamble;
    return 0;
}
All I want is call a variable from other function. After executing console will say:
'shamble' was not declared in this scope
What can I do for this problem?
Use variable and list of objects in other files and functions.
 
     
    