简体   繁体   中英

what is this stray problem? i am new to coding

(Not finished with my code yet) my code:

const int timer=8;
const int dager=5;
const float måned=4.33;
const int uker=52;



printf("forste persons navn:");
scanf("%s", navn1);

printf("Andre persons navn: ");
scanf("%s", navn2);

printf("timelonn til forste person: %i");
scanf("%i", timelonn1);

printf("antall uker ferie til forste person: %i");
scanf("%i", ukeferie1);

printf("timelonn til andre person: %i");
scanf("%i", timelonn2);

printf("antall uker ferie til andre person: %i");
scanf("%i", ukeferie2);









return 0;
}

Errors i am getting:

error: stray '\345' in program

error: expected "=", ',',', 'asm' or '_attribute_'before 'ned'

error: 'ned' undeclared (first use in this functon) 

thank you:)

I believe your issue is here

const int timer=8;
const int dager=5;
const float måned=4.33; // this variable
const int uker=52;

You are using characters not supported by the compiler (å).

This question seems to support that this is your issue. See the non-ascii character used in the source code that would not compile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM