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_13469410_23452.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13469410_23452.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13469410_23452.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13469410_23452.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13469410_23452.cpp: In function 'void init()':
0_0_13469410_23452.cpp:16:9: error: expected ';' before 'gpa'
         gpa[i] = 2.0;
         ^
0_0_13469410_23452.cpp:16:21: error: expected ')' before ';' token
         gpa[i] = 2.0;
                     ^
0_0_13469410_23452.cpp:18:9: error: expected ';' before 'gpa'
         gpa[i] = 2.5;
         ^
0_0_13469410_23452.cpp:18:21: error: expected ')' before ';' token
         gpa[i] = 2.5;
                     ^
0_0_13469410_23452.cpp:20:9: error: expected ';' before 'gpa'
         gpa[i] = 3.0;
         ^
0_0_13469410_23452.cpp:20:21: error: expected ')' before ';' token
         gpa[i] = 3.0;
                     ^
0_0_13469410_23452.cpp:22:9: error: expected ';' before 'gpa'
         gpa[i] = 3.5;
         ^
0_0_13469410_23452.cpp:22:21: error: expected ')' before ';' token
         gpa[i] = 3.5;
                     ^
0_0_13469410_23452.cpp:24:9: error: expected ';' before 'gpa'
         gpa[i] = 4.0;
         ^
0_0_13469410_23452.cpp:24:21: error: expected ')' before ';' token
         gpa[i] = 4.0;
                     ^
0_0_13469410_23452.cpp: In function 'void solve()':
0_0_13469410_23452.cpp:28:31: error: 'memset' was not declared in this scope
     memset(dp1, 0, sizeof(dp1));
                               ^
0_0_13469410_23452.cpp:30:9: error: expected ';' before 'dp1'
         dp1[1][i] = gpa[i];
         ^
0_0_13469410_23452.cpp:30:27: error: expected ')' before ';' token
         dp1[1][i] = gpa[i];
                           ^
0_0_13469410_23452.cpp:32:9: error: expected ';' before 'for'
         for (int j = 60; j 
         ^
0_0_13469410_23452.cpp:32:9: error: expected primary-expression before 'for'
0_0_13469410_23452.cpp:32:9: error: expected ')' before 'for'
0_0_13469410_23452.cpp:33:13: error: expected ';' before 'for'
             for (int k = j; k 
             ^
0_0_13469410_23452.cpp:33:13: error: expected primary-expression before 'for'
0_0_13469410_23452.cpp:33:13: error: expected ')' before 'for'
0_0_13469410_23452.cpp:34:17: error: expected ';' before 'if'
                 if (dp1[i - 1][k - j] != 0) 
                 ^
0_0_13469410_23452.cpp:34:17: error: expected primary-expression before 'if'
0_0_13469410_23452.cpp:34:17: error: expected ')' before 'if'
0_0_13469410_23452.cpp:35:74: error: 'max' was not declared in this scope
                     dp1[i][k] = max(dp1[i][k], dp1[i - 1][k - j] + gpa[j]);
                                                                          ^
0_0_13469410_23452.cpp:39:9: error: expected ';' before 'for'
         for (int j = 0; j 
         ^
0_0_13469410_23452.cpp:39:9: error: expected primary-expression before 'for'
0_0_13469410_23452.cpp:39:9: error: expected ')' before 'for'
0_0_13469410_23452.cpp:40:13: error: expected ';' before 'dp2'
             dp2[i][j] = INF;
             ^
0_0_13469410_23452.cpp:40:28: error: expected ')' before ';' token
             dp2[i][j] = INF;
                            ^
0_0_13469410_23452.cpp:42:9: error: expected ';' before 'dp2'
         dp2[1][i] = gpa[i];
         ^
0_0_13469410_23452.cpp:42:27: error: expected ')' before ';' token
         dp2[1][i] = gpa[i];
                           ^
0_0_13469410_23452.cpp:44:9: error: expected ';' before 'for'
         for (int j = 60; j 
         ^
0_0_13469410_23452.cpp:44:9: error: expected primary-expression before 'for'
0_0_13469410_23452.cpp:44:9: error: expected ')' before 'for'
0_0_13469410_23452.cpp:45:13: error: expected ';' before 'for'
             for (int k = j; k 
             ^
0_0_13469410_23452.cpp:45:13: error: expected primary-expression before 'for'
0_0_13469410_23452.cpp:45:13: error: expected ')' before 'for'
0_0_13469410_23452.cpp:46:17: error: expected ';' before 'if'
                 if (dp2[i - 1][k - j] != INF) 
                 ^
0_0_13469410_23452.cpp:46:17: error: expected primary-expression before 'if'
0_0_13469410_23452.cpp:46:17: error: expected ')' before 'if'
0_0_13469410_23452.cpp:47:74: error: 'min' was not declared in this scope
                     dp2[i][k] = min(dp2[i][k], dp2[i - 1][k - j] + gpa[j]); 
                                                                          ^
0_0_13469410_23452.cpp: In function 'int main()':
0_0_13469410_23452.cpp:52:21: error: 'scanf' was not declared in this scope
     scanf("%d", &cas);
                     ^
0_0_13469410_23452.cpp:58:73: error: 'printf' was not declared in this scope
         printf("%.4lf %.4lf\n", dp2[n][avg * n] / n, dp1[n][avg * n] / n);
                                                                         ^


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-25 19:17:25, Gzip enabled