foo.c:2:1: error: unknown type name 'using'
using namespace std;
^~~~~
foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^~~
foo.c:5:5: error: variably modified 'map' at file scope
int map[E][E], a[E];
^~~
foo.c:5:5: error: variably modified 'map' at file scope
foo.c:5:16: error: variably modified 'a' at file scope
int map[E][E], a[E];
^
foo.c:6:17: error: initializer element is not constant
int n, m, ans = INF;
^~~
foo.c: In function 'min':
foo.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:30:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:37:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:45:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:52:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:54:1: error: expected '{' at end of input
}
^
foo.c:54:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^