Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

non-ASCII characters are not allowed outside of literals and identifiers

Tags:

c

algorithm

int

#include <stdio.h>
int main ()
{

int a = 100; int b = 2;  int result;
result = a- b;
printf("%i\n",result);
return 0;
}

I have been running this code for the past hour, but it won't run. It says that "non-ASCII characters are not allowed outside of literals and identifiers". I need some insight into what that means and how to fix it. I would appreciate the help for I have been toiling over this for quite a while now.


1 Answers

You have a character in your code, which you can see in your code sample above. This is preventing your code from compiling. Remove it.

like image 91
kevinji Avatar answered Sep 05 '25 03:09

kevinji