/in/foo.cc:46:2: error: expected initializer before 'n'
n=read();m=read();
^
/in/foo.cc:46:11: error: 'm' does not name a type
n=read();m=read();
^
/in/foo.cc:47:2: error: 'maxl' does not name a type
maxl=-1;minn=10000001;
^~~~
/in/foo.cc:47:10: error: 'minn' does not name a type
maxl=-1;minn=10000001;
^~~~
/in/foo.cc:48:2: error: expected unqualified-id before 'for'
for(int i=1;i<=n;i++)
^~~
/in/foo.cc:48:14: error: 'i' does not name a type
for(int i=1;i<=n;i++)
^
/in/foo.cc:48:19: error: 'i' does not name a type
for(int i=1;i<=n;i++)
^
/in/foo.cc:50:2: error: expected unqualified-id before 'for'
for(int i=1;i<=n;i++)
^~~
/in/foo.cc:50:14: error: 'i' does not name a type
for(int i=1;i<=n;i++)
^
/in/foo.cc:50:19: error: 'i' does not name a type
for(int i=1;i<=n;i++)
^
/in/foo.cc:62:8: error: expected constructor, destructor, or type conversion before '(' token
printf("%d\n%d",minn,maxl);
^
/in/foo.cc:63:2: error: expected unqualified-id before 'return'
return 0;
^~~~~~
/in/foo.cc:64:1: error: expected declaration before '}' token
}
^