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_13195436_31204.cpp: In function 'void dfs(int, int, int, int, int, int, int, int, int)':
0_0_13195436_31204.cpp:32:53: error: 'a' was not declared in this scope
   for(i=1;i<=num1;i++) visited[a1[x1[i]]]=true,sum+=a[a1[x1[i]]];
                                                     ^
0_0_13195436_31204.cpp:33:53: error: 'a' was not declared in this scope
   for(i=1;i<=num2;i++) visited[a2[x2[i]]]=true,sum+=a[a2[x2[i]]];
                                                     ^
0_0_13195436_31204.cpp:34:53: error: 'a' was not declared in this scope
   for(i=1;i<=num3;i++) visited[a3[x3[i]]]=true,sum+=a[a3[x3[i]]];
                                                     ^
0_0_13195436_31204.cpp:35:53: error: 'a' was not declared in this scope
   for(i=1;i<=num4;i++) visited[a4[x4[i]]]=true,sum+=a[a4[x4[i]]];
                                                     ^
0_0_13195436_31204.cpp:39:45: error: invalid types 'bool[std::map<std::basic_string<char>, int>::mapped_type {aka int}]' for array subscript
    if(visited[ma[temp[i].s1]][ma[temp[i].s2]]) sum+=temp[i].num;
                                             ^
0_0_13195436_31204.cpp: In function 'int main()':
0_0_13195436_31204.cpp:90:12: error: switch quantity not an integer
   switch(s2){
            ^
0_0_13195436_31204.cpp:91:9: error: could not convert '"goalkeeper"' from 'const char [11]' to '<type error>'
    case "goalkeeper":f4=1,a4[n4++]=1;break;
         ^
0_0_13195436_31204.cpp:92:9: error: could not convert '"defender"' from 'const char [9]' to '<type error>'
    case "defender":f1=1,a1[n1++]=1;break;
         ^
0_0_13195436_31204.cpp:93:9: error: could not convert '"midfielder"' from 'const char [11]' to '<type error>'
    case "midfielder":f2=1,a2[n2++]=1;break;
         ^
0_0_13195436_31204.cpp:94:9: error: could not convert '"striker"' from 'const char [8]' to '<type error>'
    case "striker":f3=1,a3[n3++]=1;break;
         ^
0_0_13195436_31204.cpp:102:14: error: switch quantity not an integer
     switch(s2){
              ^
0_0_13195436_31204.cpp:103:9: error: could not convert '"goalkeeper"' from 'const char [11]' to '<type error>'
    case "goalkeeper":f4=1,a4[n4++]=i;break;
         ^
0_0_13195436_31204.cpp:104:9: error: could not convert '"defender"' from 'const char [9]' to '<type error>'
    case "defender":f1=1,a1[n1++]=i;break;
         ^
0_0_13195436_31204.cpp:105:9: error: could not convert '"midfielder"' from 'const char [11]' to '<type error>'
    case "midfielder":f2=1,a2[n2++]=i;break;
         ^
0_0_13195436_31204.cpp:106:9: error: could not convert '"striker"' from 'const char [8]' to '<type error>'
    case "striker":f3=1,a3[n3++]=i;break;
         ^
0_0_13195436_31204.cpp:110:20: error: too few arguments to function 'void* memset(void*, int, size_t)'
   memset(temp,false)
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
                 from 0_0_13195436_31204.cpp:2:
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_13195436_31204.cpp:111:18: error: expected ';' before ')' token
   for(i=0;i<m;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-10-06 16:56:57, Gzip enabled