0_0_37135895_17749.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_37135895_17749.cpp: In function 'int main()':
0_0_37135895_17749.cpp:3:2: error: 'undefined' was not declared in this scope
{undefined
^
0_0_37135895_17749.cpp:11:1: error: expected ';' before 'adult_cows'
adult_cows[i] = adult_cows[i-1] + t_cows[i-1];
^
0_0_37135895_17749.cpp:16:20: error: 'year' was not declared in this scope
while(scanf("%d", &year) != EOF)
^
0_0_37135895_17749.cpp:16:24: error: 'scanf' was not declared in this scope
while(scanf("%d", &year) != EOF)
^
0_0_37135895_17749.cpp:16:29: error: 'EOF' was not declared in this scope
while(scanf("%d", &year) != EOF)
^
0_0_37135895_17749.cpp:18:1: error: expected ';' before 'if'
if(year == 0)
^
0_0_37135895_17749.cpp:20:1: error: 'cows' was not declared in this scope
cows = adult_cows[year] + f_cows[year] + s_cows[year] + t_cows[year];
^
0_0_37135895_17749.cpp:21:20: error: 'printf' was not declared in this scope
printf("%d\n", cows);
^
|