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_13740325_25496.cpp: In function 'int isoverload(int, int)':
0_0_13740325_25496.cpp:9:1: error: expected ';' before 'w'
 w+=x[i]*weight[i];
 ^
0_0_13740325_25496.cpp:9:18: error: expected ')' before ';' token
 w+=x[i]*weight[i];
                  ^
0_0_13740325_25496.cpp: In function 'int getval(long int)':
0_0_13740325_25496.cpp:16:1: error: expected ';' before 'v'
 v+=x[i]*val[i];
 ^
0_0_13740325_25496.cpp:16:15: error: expected ')' before ';' token
 v+=x[i]*val[i];
               ^
0_0_13740325_25496.cpp: In function 'void digui(int, int, int, int)':
0_0_13740325_25496.cpp:26:2: error: expected ')' before 'return'
  return;
  ^
0_0_13740325_25496.cpp: In function 'int main()':
0_0_13740325_25496.cpp:36:7: error: 'cin' was not declared in this scope
 while(cin>>n){
       ^
0_0_13740325_25496.cpp:41:2: error: expected ';' before '{' token
  {cin>>b>>d;
  ^
0_0_13740325_25496.cpp:41:2: error: expected primary-expression before '{' token
0_0_13740325_25496.cpp:41:2: error: expected ')' before '{' token
0_0_13740325_25496.cpp:43:3: error: expected ';' before '{' token
   {if(b>=val[j]&&d<=weight[j])
   ^
0_0_13740325_25496.cpp:43:3: error: expected primary-expression before '{' token
0_0_13740325_25496.cpp:43:3: error: expected ')' before '{' token
0_0_13740325_25496.cpp:49:5: error: 'bweight' was not declared in this scope
  if(bweight[j])
     ^
0_0_13740325_25496.cpp:64:1: error: expected ';' before 'vall'
 vall[i]=c/weight[i];
 ^
0_0_13740325_25496.cpp:64:20: error: expected ')' before ';' token
 vall[i]=c/weight[i];
                    ^
0_0_13740325_25496.cpp:68:1: error: 'cout' was not declared in this scope
 cout<<z<<endl;
 ^
0_0_13740325_25496.cpp:68:10: error: 'endl' was not declared in this scope
 cout<<z<<endl;
          ^


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-12-05 00:02:43, Gzip enabled