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_39283690_2974.cpp:54:6: error: redefinition of 'int* a'
   54 | int* a=(int *)malloc(sizeof(int)*100000*11);
      |      ^
0_0_39283690_2974.cpp:3:6: note: 'int* a' previously declared here
    3 | int* a=(int *)malloc(sizeof(int)*100000*11);
      |      ^
0_0_39283690_2974.cpp:55:6: error: redefinition of 'int* dp'
   55 | int* dp=(int *)malloc(sizeof(int)*100000*11);
      |      ^~
0_0_39283690_2974.cpp:4:6: note: 'int* dp' previously declared here
    4 | int* dp=(int *)malloc(sizeof(int)*100000*11);
      |      ^~
0_0_39283690_2974.cpp:56:5: error: redefinition of 'int max(int, int)'
   56 | int max(int a,int b){
      |     ^~~
0_0_39283690_2974.cpp:5:5: note: 'int max(int, int)' previously defined here
    5 | int max(int a,int b){
      |     ^~~
0_0_39283690_2974.cpp:59:5: error: redefinition of 'int main()'
   59 | int main(){
      |     ^~~~
0_0_39283690_2974.cpp:8:5: note: 'int main()' previously defined here
    8 | int main(){
      |     ^~~~


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-26 20:58:50, Gzip enabled