Ok, here's the solution:
In a programming language, all expressions must be inside functions. Outside a function you can initialize a variable with a constant, but not with an expression.
The reason is that the result of an expression is normally not known at compile time, but only at runtime. In lite-C an expression is any value that is not a constant.
int x = 1; // ok
int x = y; // not ok
int x = sqrt(1); // not ok
int x = (int)1; // not ok
I hope you see now why your code can not work. Here's the fixed version:
#include <acknex.h>
int x;
void main()
{
x = (int)1;
printf("%d",x);
}