I am getting:

error: unknown type name 'string'; did you mean 'string'? string name = "Seth";

I am using VMware with the cs50 appliance, I ran update50. I've tried running it in both gedit and terminal. Same error everytime.

My code:

#include <cs50.h>
#include <stdin.h>

int main(void)
    string name = "seth";
    printf("hello, %\n", name);


Screen Shot

  • Can you post a screenshot of your appliance window showing the error and your code?
    – curiouskiwi
    Sep 4 '15 at 23:16
  • Yes I just added one. Sep 5 '15 at 1:17

Check your spelling of string. You spelt it as stirng it is spelled string

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .