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_17201107_10021.cpp:64:2: error: stray '#' in program
 }#include <iostream>
  ^
0_0_17201107_10021.cpp: In function 'int main(int, char**)':
0_0_17201107_10021.cpp:48:2: error: 'cin' was not declared in this scope
  cin>>t;
  ^
0_0_17201107_10021.cpp: At global scope:
0_0_17201107_10021.cpp:64:3: error: 'include' does not name a type
 }#include <iostream>
   ^
0_0_17201107_10021.cpp:71:8: error: redefinition of 'struct compute'
 struct compute
        ^
0_0_17201107_10021.cpp:8:8: error: previous definition of 'struct compute'
 struct compute
        ^
0_0_17201107_10021.cpp:75:23: error: conflicting declaration 'std::vector<compute> d [1005]'
 vector<compute> d[1005];
                       ^
0_0_17201107_10021.cpp:11:2: note: previous declaration as 'compute d [1005]'
 }d[1005];
  ^
0_0_17201107_10021.cpp:76:5: error: redefinition of 'int n'
 int n,w,Count;
     ^
0_0_17201107_10021.cpp:12:16: note: 'int n' previously declared here
 int init[1005],n,w,Count;
                ^
0_0_17201107_10021.cpp:76:7: error: redefinition of 'int w'
 int n,w,Count;
       ^
0_0_17201107_10021.cpp:12:18: note: 'int w' previously declared here
 int init[1005],n,w,Count;
                  ^
0_0_17201107_10021.cpp:76:9: error: redefinition of 'int Count'
 int n,w,Count;
         ^
0_0_17201107_10021.cpp:12:20: note: 'int Count' previously declared here
 int init[1005],n,w,Count;
                    ^
0_0_17201107_10021.cpp:77:17: error: redefinition of 'std::map<std::basic_string<char>, int> ma'
 map<string,int> ma;
                 ^
0_0_17201107_10021.cpp:13:17: note: 'std::map<std::basic_string<char>, int> ma' previously declared here
 map<string,int> ma;
                 ^
0_0_17201107_10021.cpp: In function 'int weight(int)':
0_0_17201107_10021.cpp:78:5: error: redefinition of 'int weight(int)'
 int weight(int middle)
     ^
0_0_17201107_10021.cpp:18:5: note: 'int weight(int)' previously defined here
 int weight(int middle)
     ^
0_0_17201107_10021.cpp:83:21: error: 'struct compute' has no member named 'size'
   for(kk=j=0;j<d[i].size();j++)
                     ^
0_0_17201107_10021.cpp:84:11: error: no match for 'operator[]' (operand types are 'compute' and 'int')
    if(d[i][j].pz>=middle)
           ^
0_0_17201107_10021.cpp:86:18: error: no match for 'operator[]' (operand types are 'compute' and 'int')
     if(minjg>d[i][j].jg) minjg=d[i][j].jg;
                  ^
0_0_17201107_10021.cpp:86:36: error: no match for 'operator[]' (operand types are 'compute' and 'int')
     if(minjg>d[i][j].jg) minjg=d[i][j].jg;
                                    ^
0_0_17201107_10021.cpp: In function 'int main()':
0_0_17201107_10021.cpp:105:10: error: conflicting declaration of C function 'int main()'
 int main()
          ^
0_0_17201107_10021.cpp:44:5: note: previous declaration 'int main(int, char**)'
 int main(int argc, char *argv[])
     ^
0_0_17201107_10021.cpp:121:13: error: 'struct compute' has no member named 'push_back'
    d[ma[s]].push_back(tt);
             ^
0_0_17201107_10021.cpp:126:9: error: 'struct compute' has no member named 'clear'
    d[i].clear(); 
         ^


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-23 04:44:01, Gzip enabled