I'm trying to run this code but on the terminal it says 'initializer element is not a compile-time constant:
#include <cs50.h>
#include <stdio.h>
int main(void)
int i = get_int ('first population: ')
int j = get_int ('second population: ')
Your code is wrong. Read closely the early chapters of your learning material.
;
s at the end of your statementsmain
function's body is not enclosed within {}
""
.You want this:
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int i = get_int ("first population: ");
int j = get_int ("second population: ");
...
more code
...
}