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_34813080_25114.cpp: In function 'int main()':
0_0_34813080_25114.cpp:41:10: error: too few arguments to function 'void* memset(void*, int, size_t)'
   memset()
          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
                 from 0_0_34813080_25114.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: declared here
   void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
                  ^
0_0_34813080_25114.cpp:42:18: error: 'i' was not declared in this scope
   for(int i = 0; i < len; i++){
                  ^
0_0_34813080_25114.cpp:56:16: error: missing template arguments before '[' token
    if(has[stack[i] - 'a'] > l[stack[i] - 'a'] && tmp != 0) mark[i] = 1, tmp--;
                ^
0_0_34813080_25114.cpp:56:36: error: missing template arguments before '[' token
    if(has[stack[i] - 'a'] > l[stack[i] - 'a'] && tmp != 0) mark[i] = 1, tmp--;
                                    ^
0_0_34813080_25114.cpp:58:22: error: 'n' was not declared in this scope
   for(int i = 0; i < n; i++) if(!mark[i])cout << stk[i];
                      ^


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-06-17 20:34:23, Gzip enabled