Run id: 98335
Main.cc:3:7: error: 'n' does not name a type
const n=150;
^
Main.cc:4:8: error: 'n' was not declared in this scope
char a[n],b[n];
^
Main.cc:4:13: error: 'n' was not declared in this scope
char a[n],b[n];
^
Main.cc: In function 'int main()':
Main.cc:6:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:6:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:6:7: error: 'a' was not declared in this scope
gets(a);
^
Main.cc:7:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(b);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:7:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(b);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:7:7: error: 'b' was not declared in this scope
gets(b);
^