foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<cstring> include<cstdio> define MAXN 210
^
foo.cpp:4:11: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:23: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:34: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:45: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:57: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:69: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp:4:80: error: 'MAXN' was not declared in this scope
char str[MAXN], minf[MAXN], fir[MAXN], ans[MAXN], temp[MAXN], next[MAXN], ret[MAXN] ;
^
foo.cpp: In function 'void get_Adjacent(char*, int)':
foo.cpp:13:9: error: 'MAXN' was not declared in this scope
char s[MAXN] ;
^
foo.cpp:14:34: error: 'strlen' was not declared in this scope
int i, flag = 0 , len = strlen(t) ;
^
foo.cpp:15:31: error: 's' was not declared in this scope
for(i = 0 ; i <= len ; i ++) s[i] = t[i] ;
^
foo.cpp:18:28: error: 's' was not declared in this scope
for(i = len-1 ; i >= 0 && s[i] == '0' ; i --) ;
^
foo.cpp:19:13: error: 's' was not declared in this scope
if(i >= 0) s[i] -- ;
^
foo.cpp:20:15: error: 's' was not declared in this scope
if(len > 1 && s[0] == '0') flag = -1 ;
^
foo.cpp:21:30: error: 's' was not declared in this scope
for(i=i+1 ; i < len ; i ++) s[i] = '9' ;
^
foo.cpp:25:28: error: 's' was not declared in this scope
for(i = len-1 ; i >= 0 && s[i] == '9' ; i --) ;
^
foo.cpp:26:13: error: 's' was not declared in this scope
if(i >= 0) s[i] ++ ;
^
foo.cpp:28:33: error: 's' was not declared in this scope
for(i = i + 1; i < len ; i ++) s[i] = '0' ;
^
foo.cpp:31:16: error: 'next' was not declared in this scope
if(flag == 1) next[i++] = '1' ;
^
foo.cpp:32:29: error: 'next' was not declared in this scope
for(; i < len+flag ; i ++) next[i] = s[i-flag] ; next[i] = '\0' ;
^
foo.cpp:32:39: error: 's' was not declared in this scope
for(; i < len+flag ; i ++) next[i] = s[i-flag] ; next[i] = '\0' ;
^
foo.cpp:32:51: error: 'next' was not declared in this scope
for(; i < len+flag ; i ++) next[i] = s[i-flag] ; next[i] = '\0' ;
^
foo.cpp: In function 'bool judgment(int, int)':
foo.cpp:37:5: error: 'str' was not declared in this scope
if(str[p] != '1') return false ;
^
foo.cpp:39:5: error: 'str' was not declared in this scope
if(str[i] != '9') return false ;
^
foo.cpp:40:21: error: 'n' was not declared in this scope
for(i = 1 ; i+p <= n && i < len ; i ++)
^
foo.cpp:41:5: error: 'str' was not declared in this scope
if(str[i+p] != '0') return false ;
^
foo.cpp: In function 'void getMin(char*, char*)':
foo.cpp:46:21: error: 'strlen' was not declared in this scope
int i, ls = strlen(s), lt = strlen(t) ;
^
f