0_0_36627602_13145.c:2:1: error: unknown type name 'using'
using namespace std;
^
0_0_36627602_13145.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_36627602_13145.c: In function 'main':
0_0_36627602_13145.c:6:8: error: 'cin' undeclared (first use in this function)
while(cin>>n>>m){
^
0_0_36627602_13145.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
0_0_36627602_13145.c:9:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(long long i=1;i<=n;i++)
^
0_0_36627602_13145.c:9:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_36627602_13145.c:11:17: error: redefinition of 'i'
for(long long i=1,j=1;i<=m&&j<=n;i++){
^
0_0_36627602_13145.c:9:17: note: previous definition of 'i' was here
for(long long i=1;i<=n;i++)
^
0_0_36627602_13145.c:11:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(long long i=1,j=1;i<=m&&j<=n;i++){
^
0_0_36627602_13145.c:15:4: error: expected expression before '/' token
// cout<<a[j]<<" : "<<b<<endl;
^
0_0_36627602_13145.c:16:4: error: expected expression before '/' token
// cout<<114<<endl;
^
0_0_36627602_13145.c:26:5: error: expected expression before '/' token
// cout<<a[j]<<" : "<<b<<endl;
^
0_0_36627602_13145.c:27:5: error: expected expression before '/' token
// cout<<514<<endl;
^
0_0_36627602_13145.c:30:5: error: expected expression before '/' token
}//cout<<"ans = "<<ans<<endl;
^
0_0_36627602_13145.c:32:3: error: 'cout' undeclared (first use in this function)
cout<<ans<<endl;
^
0_0_36627602_13145.c:32:14: error: 'endl' undeclared (first use in this function)
cout<<ans<<endl;
^
|