pohlepko.cpp: In function 'int main()':
pohlepko.cpp:11:41: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[2001]' [-Wformat=]
for(int i=0;i<n;i++)scanf("%s",&a[i]);
^
pohlepko.cpp:13:29: error: 's1' was not declared in this scope
for(int i=0;i<n;i++)s1+=a[i][0];
^
pohlepko.cpp:14:15: error: 's1' was not declared in this scope
cout<<s1<<endl;
^
pohlepko.cpp:18:29: error: 's1' was not declared in this scope
for(int i=0;i<m;i++)s1+=a[0][i];
^
pohlepko.cpp:19:15: error: 's1' was not declared in this scope
cout<<s1<<endl;
^
pohlepko.cpp:10:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
pohlepko.cpp:11:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<n;i++)scanf("%s",&a[i]);
^