/in/foo.cc: In function 'int main()':
/in/foo.cc:8:20: error: 'strlen' was not declared in this scope
8 | int x = 0, str = strlen(a), y = 0, stp = strlen(b);
| ^~~~~~
/in/foo.cc:2:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
/in/foo.cc:10:21: error: 'stp' was not declared in this scope; did you mean 'str'?
10 | while (x <= str - stp) {
| ^~~
| str
/in/foo.cc:11:18: error: 'y' was not declared in this scope
11 | if (a[x] == b[y]) {
| ^
/in/foo.cc:26:11: error: expected '}' at end of input
26 | }return 0;
| ^
/in/foo.cc:4:12: note: to match this '{'
4 | int main() {
| ^