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_39567267_24176.cpp:25:39: error: stray '\275' in program
   25 |                 for (int j = n; j >= p<bd><e1><b9><fb>
      |                                       ^~~~
0_0_39567267_24176.cpp:25:40: error: stray '\341' in program
   25 |                 for (int j = n; j >= p<bd><e1><b9><fb>
      |                                           ^~~~
0_0_39567267_24176.cpp:25:41: error: stray '\271' in program
   25 |                 for (int j = n; j >= p<bd><e1><b9><fb>
      |                                               ^~~~
0_0_39567267_24176.cpp:25:42: error: stray '\373' in program
   25 |                 for (int j = n; j >= p<bd><e1><b9><fb>
      |                                                   ^~~~
0_0_39567267_24176.cpp: In function 'int main()':
0_0_39567267_24176.cpp:16:24: error: 'j' was not declared in this scope
   16 |                     dp[j] = max(dp[j], dp[j - price * num] + weight * num);
      |                        ^
0_0_39567267_24176.cpp:16:55: error: 'num' was not declared in this scope; did you mean 'enum'?
   16 |                     dp[j] = max(dp[j], dp[j - price * num] + weight * num);
      |                                                       ^~~
      |                                                       enum
0_0_39567267_24176.cpp: At global scope:
0_0_39567267_24176.cpp:20:9: error: 'cout' does not name a type
   20 |         cout << dp[n] << endl;  // تن³ِ
      |         ^~~~
0_0_39567267_24176.cpp:21:13: error: expected unqualified-id before 'for'
   21 |             for (int k = 1; count > 0; k <<= 1) {
      |             ^~~
0_0_39567267_24176.cpp:21:29: error: 'count' does not name a type
   21 |             for (int k = 1; count > 0; k <<= 1) {
      |                             ^~~~~
0_0_39567267_24176.cpp:21:40: error: 'k' does not name a type
   21 |             for (int k = 1; count > 0; k <<= 1) {
      |                                        ^
0_0_39567267_24176.cpp:27:5: error: expected unqualified-id before 'return'
   27 |     return 0;
      |     ^~~~~~
0_0_39567267_24176.cpp:28:1: error: expected declaration before '}' token
   28 | }
      | ^


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-22 17:48:30, Gzip enabled