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_35757522_24901.cpp:14:17: error: conflicting declaration 'std::map<char, char> m'
 map<char, char> m;
                 ^
0_0_35757522_24901.cpp:12:7: note: previous declaration as 'int m'
 int n,m;
       ^
0_0_35757522_24901.cpp: In function 'void init()':
0_0_35757522_24901.cpp:16:10: error: invalid types 'int[char]' for array subscript
     m['B'] = m['F'] = m['P'] = m['V'] = '1';
          ^
0_0_35757522_24901.cpp:16:19: error: invalid types 'int[char]' for array subscript
     m['B'] = m['F'] = m['P'] = m['V'] = '1';
                   ^
0_0_35757522_24901.cpp:16:28: error: invalid types 'int[char]' for array subscript
     m['B'] = m['F'] = m['P'] = m['V'] = '1';
                            ^
0_0_35757522_24901.cpp:16:37: error: invalid types 'int[char]' for array subscript
     m['B'] = m['F'] = m['P'] = m['V'] = '1';
                                     ^
0_0_35757522_24901.cpp:17:10: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
          ^
0_0_35757522_24901.cpp:17:19: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                   ^
0_0_35757522_24901.cpp:17:28: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                            ^
0_0_35757522_24901.cpp:17:37: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                                     ^
0_0_35757522_24901.cpp:17:46: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                                              ^
0_0_35757522_24901.cpp:17:55: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                                                       ^
0_0_35757522_24901.cpp:17:64: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                                                                ^
0_0_35757522_24901.cpp:17:73: error: invalid types 'int[char]' for array subscript
     m['C'] = m['G'] = m['J'] = m['K'] = m['Q'] = m['S'] = m['X'] = m['Z'] = '2';
                                                                         ^
0_0_35757522_24901.cpp:18:10: error: invalid types 'int[char]' for array subscript
     m['D'] = m['T'] = '3';
          ^
0_0_35757522_24901.cpp:18:19: error: invalid types 'int[char]' for array subscript
     m['D'] = m['T'] = '3';
                   ^
0_0_35757522_24901.cpp:19:10: error: invalid types 'int[char]' for array subscript
     m['L'] = '4';
          ^
0_0_35757522_24901.cpp:20:10: error: invalid types 'int[char]' for array subscript
     m['M'] = m['N'] = '5';
          ^
0_0_35757522_24901.cpp:20:19: error: invalid types 'int[char]' for array subscript
     m['M'] = m['N'] = '5';
                   ^
0_0_35757522_24901.cpp:21:10: error: invalid types 'int[char]' for array subscript
     m['R'] = '6';
          ^
0_0_35757522_24901.cpp:22:10: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
          ^
0_0_35757522_24901.cpp:22:19: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                   ^
0_0_35757522_24901.cpp:22:28: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                            ^
0_0_35757522_24901.cpp:22:37: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                                     ^
0_0_35757522_24901.cpp:22:46: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                                              ^
0_0_35757522_24901.cpp:22:55: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                                                       ^
0_0_35757522_24901.cpp:22:64: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                                                                ^
0_0_35757522_24901.cpp:22:73: error: invalid types 'int[char]' for array subscript
     m['A'] = m['E'] = m['I'] = m['O'] = m['U'] = m['H'] = m['W'] = m['Y'] = 'X';
                                                                         ^
0_0_35757522_24901.cpp: In function 'std::string encode(const string&)':
0_0_35757522_24901.cpp:29:24: error: invalid types 'int[const char]' for array subscript
         else if (m[s[i]] != 'X' && m[s[i]] != m[s[i - 1]])
                        ^
0_0_35757522_24901.cpp:29:42: error: invalid types 'int[const char]' for array subscript
         else if (m[s[i]] != 'X' && m[s[i]] != m[s[i - 1]])
                                          ^
0_0_35757522_24901.cpp:29:57: error: invalid types 'int[const char]' for array subscript
         else if (m[s[i]] != 'X' && m[s[i]] != m[s[i - 1]])
                                                         ^
0_0_35757522_24901.cpp:30:24: error: invalid types 'int[const char]' for array subscript
             r += m[s[i]];
                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 12:00:18, Gzip enabled