title: Why do I get error "was not declared in this scope"
body: <p>This is a part of my code where I get two errors:</p>
  
  <pre><code>void Person::setName(char* n) {
      Name = new char[strlen(n) + 1];
      strcpy(Name, n);
  }
  </code></pre>
  
  <pre>
  main.cpp:217:26: error: ‘strlen’ was not declared in this scope
    Name = new char[strlen(n) + 1];
  main.cpp:218:16: error: ‘strcpy’ was not declared in this scope
    strcpy(Name, n);
  </pre>
  
  <p>I am using online C++ compiler.</p>