Run id: 77007

Main.cc: In function 'int main()':
Main.cc:14:45: error: 'num' was not declared in this scope
    if(i == 1 || j == 1 || i == m || j == n) num+=a[i][j];
                                             ^
Main.cc:17:10: error: 'num' was not declared in this scope
  cout << num;
          ^
Main.cc:5:21: warning: unused variable 'w' [-Wunused-variable]
 int m,n,a[101][101],w=0;
                     ^