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_34996289_24288.cpp: In function 'int main()':
0_0_34996289_24288.cpp:16:10: error: 'k' was not declared in this scope
     cin>>k;
          ^
0_0_34996289_24288.cpp:22:14: error: 'n' was not declared in this scope
         cin>>n;
              ^
0_0_34996289_24288.cpp:23:29: error: expected ';' before ')' token
         memset(cas,cas+n;cmp);
                             ^
0_0_34996289_24288.cpp:24:13: error: 'i' was not declared in this scope
         for(i=0;i<n;i++)
             ^
0_0_34996289_24288.cpp:29:27: error: expected ';' before ')' token
         sort(cas,cas+n;cmp);
                           ^
0_0_34996289_24288.cpp:30:13: error: 'i' was not declared in this scope
         for(i=0;i<n;i++)
             ^
0_0_34996289_24288.cpp:34:31: error: 'sun' was not declared in this scope
             mp[cas[i].name]++,sun+=val;
                               ^
0_0_34996289_24288.cpp:34:36: error: 'val' was not declared in this scope
             mp[cas[i].name]++,sun+=val;
                                    ^


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 14:39:27, Gzip enabled