title: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict]
body: <p>When I manually test my program it compiles and works fine but when I try to use the autograder in the terminal I get this error. I am new to C and do not understand what it means and how to fix it.</p>
  <p>My code:</p>
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;ctype.h&gt;
  #include&lt;string.h&gt;
  #include&lt;stdlib.h&gt;
  int main(int argc, char* argv[]){
      
      char *s = (char *)malloc(sizeof(char) * 100);
      char prev = argv[1][0];
      if(isdigit(prev)!=0){
          printf(&quot;%s&quot;,&quot;ERROR&quot;);
          return 0;
      }
      
      int count = 1;
      for(int i=1; i&lt;strlen(argv[1]); i++){
          if(isdigit(argv[1][i])!=0){
              printf(&quot;%s&quot;,&quot;ERROR&quot;);
              return 0;
          }
          if(prev==argv[1][i]){
              count++;
          }else{
              sprintf(s, &quot;%s%c%d&quot;, s, prev, count);
              count = 1;
          }
          prev=argv[1][i];
      }
      sprintf(s, &quot;%s%c%d&quot;, s, prev, count);
      if(strlen(s) &gt; strlen(argv[1])){
          printf(&quot;%s\n&quot;, argv[1]);
      }else{
          printf(&quot;%s\n&quot;, s);
      }
      free(s);
        
  }
  </code></pre>