F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 08:16:42, Gzip enabled