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_25445665_23687.c:6:9: error: expected identifier or '(' before '/' token
 float P;//逃跑的概率
         ^
0_0_25445665_23687.c:6:9: error: stray '\314' in program
0_0_25445665_23687.c:6:9: error: stray '\323' in program
0_0_25445665_23687.c:6:9: error: stray '\305' in program
0_0_25445665_23687.c:6:9: error: stray '\334' in program
0_0_25445665_23687.c:6:9: error: stray '\265' in program
0_0_25445665_23687.c:6:9: error: stray '\304' in program
0_0_25445665_23687.c:6:9: error: stray '\270' in program
0_0_25445665_23687.c:6:9: error: stray '\305' in program
0_0_25445665_23687.c:6:9: error: stray '\302' in program
0_0_25445665_23687.c:6:9: error: stray '\312' in program
0_0_25445665_23687.c:7:7: error: expected identifier or '(' before '/' token
 int N;//银行数
       ^
0_0_25445665_23687.c:7:7: error: stray '\322' in program
0_0_25445665_23687.c:7:7: error: stray '\370' in program
0_0_25445665_23687.c:7:7: error: stray '\320' in program
0_0_25445665_23687.c:7:7: error: stray '\320' in program
0_0_25445665_23687.c:7:7: error: stray '\312' in program
0_0_25445665_23687.c:7:7: error: stray '\375' in program
0_0_25445665_23687.c:8:17: error: expected identifier or '(' before '/' token
 int m[MAX_BANK];//每个银行的钱数
                 ^
0_0_25445665_23687.c:8:17: error: stray '\303' in program
0_0_25445665_23687.c:8:17: error: stray '\277' in program
0_0_25445665_23687.c:8:17: error: stray '\270' in program
0_0_25445665_23687.c:8:17: error: stray '\366' in program
0_0_25445665_23687.c:8:17: error: stray '\322' in program
0_0_25445665_23687.c:8:17: error: stray '\370' in program
0_0_25445665_23687.c:8:17: error: stray '\320' in program
0_0_25445665_23687.c:8:17: error: stray '\320' in program
0_0_25445665_23687.c:8:17: error: stray '\265' in program
0_0_25445665_23687.c:8:17: error: stray '\304' in program
0_0_25445665_23687.c:8:17: error: stray '\307' in program
0_0_25445665_23687.c:8:17: error: stray '\256' in program
0_0_25445665_23687.c:8:17: error: stray '\312' in program
0_0_25445665_23687.c:8:17: error: stray '\375' in program
0_0_25445665_23687.c:9:19: error: expected identifier or '(' before '/' token
 float p[MAX_BANK];//每个银行逃跑的概率 
                   ^
0_0_25445665_23687.c:9:19: error: stray '\303' in program
0_0_25445665_23687.c:9:19: error: stray '\277' in program
0_0_25445665_23687.c:9:19: error: stray '\270' in program
0_0_25445665_23687.c:9:19: error: stray '\366' in program
0_0_25445665_23687.c:9:19: error: stray '\322' in program
0_0_25445665_23687.c:9:19: error: stray '\370' in program
0_0_25445665_23687.c:9:19: error: stray '\320' in program
0_0_25445665_23687.c:9:19: error: stray '\320' in program
0_0_25445665_23687.c:9:19: error: stray '\314' in program
0_0_25445665_23687.c:9:19: error: stray '\323' in program
0_0_25445665_23687.c:9:19: error: stray '\305' in program
0_0_25445665_23687.c:9:19: error: stray '\334' in program
0_0_25445665_23687.c:9:19: error: stray '\265' in program
0_0_25445665_23687.c:9:19: error: stray '\304' in program
0_0_25445665_23687.c:9:19: error: stray '\270' in program
0_0_25445665_23687.c:9:19: error: stray '\305' in program
0_0_25445665_23687.c:9:19: error: stray '\302' in program
0_0_25445665_23687.c:9:19: error: stray '\312' in program
0_0_25445665_23687.c:11:9: error: expected identifier or '(' before '/' token
 int sum;//总钱数
         ^
0_0_25445665_23687.c:11:9: error: stray '\327' in program
0_0_25445665_23687.c:11:9: error: stray '\334' in program
0_0_25445665_23687.c:11:9: error: stray '\307' in program
0_0_25445665_23687.c:11:9: error: stray '\256' in program
0_0_25445665_23687.c:11:9: error: stray '\312' in program
0_0_25445665_23687.c:11:9: error: stray '\375' in program
0_0_25445665_23687.c: In function 'solve':
0_0_25445665_23687.c:26:2: error: 'dp' undeclared (first use in this function)
  dp[0][0] = 1;
  ^
0_0_25445665_23687.c:26:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_25445665_23687.c:31:17: error: 'N' undeclared (first use in this function)
  for(i = 0; i < N; i++){
                 ^
0_0_25445665_23687.c:33:7: error: 'm' undeclared (first use in this function)
    if(m[i] > j) dp[i + 1][j] = dp[i][j];
       ^
0_0_25445665_23687.c:35:52: error: 'p' undeclared (first use in this function)
     dp[i + 1][j] = max(dp[i][j], dp[i][j - m[i]] * p[i]);
                                                    ^
0_0_25445665_23687.c: In function 'main':
0_0_25445665_23687.c:45:23: error: 'N' undeclared (first use in this function)
   scanf("%f %d", &P, &N);
                       ^
0_0_25445665_23687.c:49:20: error: 'm' undeclared (first use in this function)
    scanf("%d %f", &m[i], &p[i]);
                    ^
0_0_25445665_23687.c:49:27: error: 'p' undeclared (first use in this function)
    scanf("%d %f", &m[i], &p[i]);
                           ^
0_0_25445665_23687.c:55:7: error: 'dp' undeclared (first use in this function)
    if(dp[N][i] >= P){
       ^


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 00:16:53, Gzip enabled