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_23218019_7016.cpp:13:1: error: expected unqualified-id before '?' token
 ? ? int weight;
 ^
0_0_23218019_7016.cpp:15:1: error: expected unqualified-id before '?' token
 ? ? int speed;
 ^
0_0_23218019_7016.cpp:17:1: error: expected unqualified-id before '?' token
 ? ? int num;
 ^
0_0_23218019_7016.cpp: In function 'bool com(mouse, mouse)':
0_0_23218019_7016.cpp:27:1: error: expected primary-expression before '?' token
 ? ? return m1.weight<m2.weight;
 ^
0_0_23218019_7016.cpp:27:3: error: expected primary-expression before '?' token
 ? ? return m1.weight<m2.weight;
   ^
0_0_23218019_7016.cpp:27:5: error: expected primary-expression before 'return'
 ? ? return m1.weight<m2.weight;
     ^
0_0_23218019_7016.cpp:27:5: error: expected ':' before 'return'
0_0_23218019_7016.cpp:27:5: error: expected primary-expression before 'return'
0_0_23218019_7016.cpp:27:5: error: expected ':' before 'return'
0_0_23218019_7016.cpp:27:5: error: expected primary-expression before 'return'
0_0_23218019_7016.cpp: In function 'int main()':
0_0_23218019_7016.cpp:37:1: error: expected primary-expression before '?' token
 ? ? mouse m[2000];
 ^
0_0_23218019_7016.cpp:37:3: error: expected primary-expression before '?' token
 ? ? mouse m[2000];
   ^
0_0_23218019_7016.cpp:37:11: error: expected primary-expression before 'm'
 ? ? mouse m[2000];
           ^
0_0_23218019_7016.cpp:37:11: error: expected ':' before 'm'
0_0_23218019_7016.cpp:37:11: error: 'm' was not declared in this scope
0_0_23218019_7016.cpp:37:18: error: expected ':' before ';' token
 ? ? mouse m[2000];
                  ^
0_0_23218019_7016.cpp:37:18: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:39:1: error: expected primary-expression before '?' token
 ? ? int i=0;
 ^
0_0_23218019_7016.cpp:39:3: error: expected primary-expression before '?' token
 ? ? int i=0;
   ^
0_0_23218019_7016.cpp:39:5: error: expected primary-expression before 'int'
 ? ? int i=0;
     ^
0_0_23218019_7016.cpp:39:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:39:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:39:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:39:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:41:1: error: expected primary-expression before '?' token
 ? ? int j;
 ^
0_0_23218019_7016.cpp:41:3: error: expected primary-expression before '?' token
 ? ? int j;
   ^
0_0_23218019_7016.cpp:41:5: error: expected primary-expression before 'int'
 ? ? int j;
     ^
0_0_23218019_7016.cpp:41:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:41:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:41:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:41:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:45:1: error: expected primary-expression before '?' token
 ? ? while(cin>>m[i].weight>>m[i].speed)
 ^
0_0_23218019_7016.cpp:45:3: error: expected primary-expression before '?' token
 ? ? while(cin>>m[i].weight>>m[i].speed)
   ^
0_0_23218019_7016.cpp:45:5: error: expected primary-expression before 'while'
 ? ? while(cin>>m[i].weight>>m[i].speed)
     ^
0_0_23218019_7016.cpp:45:5: error: expected ':' before 'while'
0_0_23218019_7016.cpp:45:5: error: expected primary-expression before 'while'
0_0_23218019_7016.cpp:45:5: error: expected ':' before 'while'
0_0_23218019_7016.cpp:45:5: error: expected primary-expression before 'while'
0_0_23218019_7016.cpp:57:1: error: expected primary-expression before '?' token
 ? ? int count1=i;
 ^
0_0_23218019_7016.cpp:57:3: error: expected primary-expression before '?' token
 ? ? int count1=i;
   ^
0_0_23218019_7016.cpp:57:5: error: expected primary-expression before 'int'
 ? ? int count1=i;
     ^
0_0_23218019_7016.cpp:57:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:57:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:57:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:57:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:61:1: error: expected primary-expression before '?' token
 ? ? sort(m,m+count1,com);
 ^
0_0_23218019_7016.cpp:61:3: error: expected primary-expression before '?' token
 ? ? sort(m,m+count1,com);
   ^
0_0_23218019_7016.cpp:61:14: error: 'count1' was not declared in this scope
 ? ? sort(m,m+count1,com);
              ^
0_0_23218019_7016.cpp:61:25: error: expected ':' before ';' token
 ? ? sort(m,m+count1,com);
                         ^
0_0_23218019_7016.cpp:61:25: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:61:25: error: expected ':' before ';' token
0_0_23218019_7016.cpp:61:25: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:65:1: error: expected primary-expression before '?' token
 ? ? int dp[2000]={0};
 ^
0_0_23218019_7016.cpp:65:3: error: expected primary-expression before '?' token
 ? ? int dp[2000]={0};
   ^
0_0_23218019_7016.cpp:65:5: error: expected primary-expression before 'int'
 ? ? int dp[2000]={0};
     ^
0_0_23218019_7016.cpp:65:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:65:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:65:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:65:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:69:1: error: expected primary-expression before '?' token
 ? ? int dpmax=0;
 ^
0_0_23218019_7016.cpp:69:3: error: expected primary-expression before '?' token
 ? ? int dpmax=0;
   ^
0_0_23218019_7016.cpp:69:5: error: expected primary-expression before 'int'
 ? ? int dpmax=0;
     ^
0_0_23218019_7016.cpp:69:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:69:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:69:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:69:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:71:1: error: expected primary-expression before '?' token
 ? ? int loc=0;
 ^
0_0_23218019_7016.cpp:71:3: error: expected primary-expression before '?' token
 ? ? int loc=0;
   ^
0_0_23218019_7016.cpp:71:5: error: expected primary-expression before 'int'
 ? ? int loc=0;
     ^
0_0_23218019_7016.cpp:71:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:71:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:71:5: error: expected ':' before 'int'
0_0_23218019_7016.cpp:71:5: error: expected primary-expression before 'int'
0_0_23218019_7016.cpp:75:1: error: expected primary-expression before '?' token
 ? ? for(i=count1-1;i>=0;i--)
 ^
0_0_23218019_7016.cpp:75:3: error: expected primary-expression before '?' token
 ? ? for(i=count1-1;i>=0;i--)
   ^
0_0_23218019_7016.cpp:75:5: error: expected primary-expression before 'for'
 ? ? for(i=count1-1;i>=0;i--)
     ^
0_0_23218019_7016.cpp:75:5: error: expected ':' before 'for'
0_0_23218019_7016.cpp:75:5: error: expected primary-expression before 'for'
0_0_23218019_7016.cpp:75:5: error: expected ':' before 'for'
0_0_23218019_7016.cpp:75:5: error: expected primary-expression before 'for'
0_0_23218019_7016.cpp:75:20: error: 'i' was not declared in this scope
 ? ? for(i=count1-1;i>=0;i--)
                    ^
0_0_23218019_7016.cpp:109:1: error: expected primary-expression before '?' token
 ? ? /*
 ^
0_0_23218019_7016.cpp:109:3: error: expected primary-expression before '?' token
 ? ? /*
   ^
0_0_23218019_7016.cpp:121:1: error: expected primary-expression before '?' token
 ? ? cout<<dpmax<<endl;//for(i=0;i<count1;i++)if(dp[i]>dp[loc])loc=i;
 ^
0_0_23218019_7016.cpp:121:3: error: expected primary-expression before '?' token
 ? ? cout<<dpmax<<endl;//for(i=0;i<count1;i++)if(dp[i]>dp[loc])loc=i;
   ^
0_0_23218019_7016.cpp:121:11: error: 'dpmax' was not declared in this scope
 ? ? cout<<dpmax<<endl;//for(i=0;i<count1;i++)if(dp[i]>dp[loc])loc=i;
           ^
0_0_23218019_7016.cpp:121:22: error: expected ':' before ';' token
 ? ? cout<<dpmax<<endl;//for(i=0;i<count1;i++)if(dp[i]>dp[loc])loc=i;
                      ^
0_0_23218019_7016.cpp:121:22: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:121:22: error: expected ':' before ';' token
0_0_23218019_7016.cpp:121:22: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:121:22: error: expected ':' before ';' token
0_0_23218019_7016.cpp:121:22: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:121:22: error: expected ':' before ';' token
0_0_23218019_7016.cpp:121:22: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:123:1: error: expected primary-expression before '?' token
 ? ? cout<<m[loc].num<<endl;
 ^
0_0_23218019_7016.cpp:123:3: error: expected primary-expression before '?' token
 ? ? cout<<m[loc].num<<endl;
   ^
0_0_23218019_7016.cpp:123:13: error: 'loc' was not declared in this scope
 ? ? cout<<m[loc].num<<endl;
             ^
0_0_23218019_7016.cpp:123:27: error: expected ':' before ';' token
 ? ? cout<<m[loc].num<<endl;
                           ^
0_0_23218019_7016.cpp:123:27: error: expected primary-expression before ';' token
0_0_23218019_7016.cpp:123:27: error: expected ':' before ';' token
0_0_23218019_7016.cpp:123:27: error: expect


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-26 11:33:05, Gzip enabled