foo.cc: In function 'bool ishuiwen(std::__cxx11::string)':
foo.cc:11:7: error: 's' was not declared in this scope
if(s==b)return ture;
^
foo.cc:11:19: error: 'ture' was not declared in this scope
if(s==b)return ture;
^~~~
foo.cc:11:19: note: suggested alternative: 'time'
if(s==b)return ture;
^~~~
time
foo.cc: In function 'std::__cxx11::string add(int, std::__cxx11::string)':
foo.cc:19:13: error: 'maxn' was not declared in this scope
int numa[maxn],numb[maxn],numc[maxn];
^~~~
foo.cc:19:13: note: suggested alternative: 'maxN'
int numa[maxn],numb[maxn],numc[maxn];
^~~~
maxN
foo.cc:24:22: error: 'numa' was not declared in this scope
if (isdigit(a[i])) numa[len-i] = a[i] - '0'; //对于十六进制的特判,如果是数字减去 0 ,下同
^~~~
foo.cc:24:22: note: suggested alternative: 'enum'
if (isdigit(a[i])) numa[len-i] = a[i] - '0'; //对于十六进制的特判,如果是数字减去 0 ,下同
^~~~
enum
foo.cc:25:8: error: 'numa' was not declared in this scope
else numa[len-i] = a[i] - 'A' + 10; //如果不是数字减去 A 再加上 10
^~~~
foo.cc:25:8: note: suggested alternative: 'enum'
else numa[len-i] = a[i] - 'A' + 10; //如果不是数字减去 A 再加上 10
^~~~
enum
foo.cc:26:22: error: 'numb' was not declared in this scope
if (isdigit(b[i])) numb[len-i] = b[i] - '0';
^~~~
foo.cc:26:22: note: suggested alternative: 'enum'
if (isdigit(b[i])) numb[len-i] = b[i] - '0';
^~~~
enum
foo.cc:27:8: error: 'numb' was not declared in this scope
else numb[len-i] = b[i] - 'A' + 10;
^~~~
foo.cc:27:8: note: suggested alternative: 'enum'
else numb[len-i] = b[i] - 'A' + 10;
^~~~
enum
foo.cc:31:3: error: 'numc' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:31:3: note: suggested alternative: 'putc'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
putc
foo.cc:31:16: error: 'numa' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:31:16: note: suggested alternative: 'enum'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
enum
foo.cc:31:29: error: 'numb' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:31:29: note: suggested alternative: 'enum'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
enum
foo.cc:36:2: error: 'numc' was not declared in this scope
numc[lenc] = x;
^~~~
foo.cc:36:2: note: suggested alternative: 'putc'
numc[lenc] = x;
^~~~
putc
foo.cc: In function 'int main()':
foo.cc:48:13: error: 's' was not declared in this scope
scanf("%s",s);
^
foo.cc:49:10: error: 'strlen' was not declared in this scope
int len=strlen(m);
^~~~~~
foo.cc:49:10: note: suggested alternative: 'mbrlen'
int len=strlen(m);
^~~~~~
mbrlen
foo.cc:49:6: warning: unused variable 'len' [-Wunused-variable]
int len=strlen(m);
^~~
foo.cc:47:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务