I am new in C programming and I have problem with this small code:
int main(){
int score = 0;
score = score + pow(2, 1);
printf("%d", score);
return 0;
}
When I compile this code with -Wconversion I get this error:
error: conversion from ‘double’ to ‘int’ may change value [-Werror=float-conversion]
On this line:
score = score + pow(2, 1);
How can I fix this problem?