Syntax error near unexpected token '('

I have a file named go.c with the following code:

#include 

int main ()
{
  int age = 25;

  // print a string literal
  printf( " My age is " );

  // print an int variable
  printf( " %d ", age );

  return 0;
}

And the following task file:

  {
    "label": "Run C File",
    "command": "bash ~/.var/app/dev.zed.Zed/config/zed/go.c",
  },

And I get the following error: syntax error near unexpected token '('

What am I doing wrong?

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论