foo.cc: In function 'bool ishuiwen(std::__cxx11::string)':
foo.cc:12:7: error: 's' was not declared in this scope
if(s==b)return ture;
^
foo.cc:12:19: error: 'ture' was not declared in this scope
if(s==b)return ture;
^~~~
foo.cc:12: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:20:13: error: 'maxn' was not declared in this scope
int numa[maxn],numb[maxn],numc[maxn];
^~~~
foo.cc:20:13: note: suggested alternative: 'maxN'
int numa[maxn],numb[maxn],numc[maxn];
^~~~
maxN
foo.cc:25:22: error: 'numa' was not declared in this scope
if (isdigit(a[i])) numa[len-i] = a[i] - '0'; //对于十六进制的特判,如果是数字减去 0 ,下同
^~~~
foo.cc:25:22: note: suggested alternative: 'enum'
if (isdigit(a[i])) numa[len-i] = a[i] - '0'; //对于十六进制的特判,如果是数字减去 0 ,下同
^~~~
enum
foo.cc:26:8: error: 'numa' was not declared in this scope
else numa[len-i] = a[i] - 'A' + 10; //如果不是数字减去 A 再加上 10
^~~~
foo.cc:26:8: note: suggested alternative: 'enum'
else numa[len-i] = a[i] - 'A' + 10; //如果不是数字减去 A 再加上 10
^~~~
enum
foo.cc:27:22: error: 'numb' was not declared in this scope
if (isdigit(b[i])) numb[len-i] = b[i] - '0';
^~~~
foo.cc:27:22: note: suggested alternative: 'enum'
if (isdigit(b[i])) numb[len-i] = b[i] - '0';
^~~~
enum
foo.cc:28:8: error: 'numb' was not declared in this scope
else numb[len-i] = b[i] - 'A' + 10;
^~~~
foo.cc:28:8: note: suggested alternative: 'enum'
else numb[len-i] = b[i] - 'A' + 10;
^~~~
enum
foo.cc:32:3: error: 'numc' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:32:3: note: suggested alternative: 'putc'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
putc
foo.cc:32:16: error: 'numa' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:32:16: note: suggested alternative: 'enum'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
enum
foo.cc:32:29: error: 'numb' was not declared in this scope
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
foo.cc:32:29: note: suggested alternative: 'enum'
numc[lenc] = numa[lenc] + numb[lenc] + x;
^~~~
enum
foo.cc:37:2: error: 'numc' was not declared in this scope
numc[lenc] = x;
^~~~
foo.cc:37:2: note: suggested alternative: 'putc'
numc[lenc] = x;
^~~~
putc
foo.cc: In function 'int main()':
foo.cc:49:13: error: 's' was not declared in this scope
scanf("%s",s);
^
foo.cc:50:10: error: 'strlen' was not declared in this scope
int len=strlen(m);
^~~~~~
foo.cc:50:10: note: suggested alternative: 'mbrlen'
int len=strlen(m);
^~~~~~
mbrlen
foo.cc:50:6: warning: unused variable 'len' [-Wunused-variable]
int len=strlen(m);
^~~
foo.cc:48: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)提供评测服务