Compile Error

/in/foo.cc:4:40: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                        ^
/in/foo.cc:4:46: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                              ^
/in/foo.cc:4:52: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                    ^
/in/foo.cc:4:58: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                          ^
/in/foo.cc:4:64: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                ^
/in/foo.cc:4:70: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                      ^
/in/foo.cc:4:76: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                            ^
/in/foo.cc:4:82: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                  ^
/in/foo.cc:4:88: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                        ^
/in/foo.cc:4:94: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                              ^~
/in/foo.cc:4:101: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                     ^~
/in/foo.cc:4:108: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                            ^~
/in/foo.cc:4:115: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                                   ^~
/in/foo.cc:4:122: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                                          ^~
/in/foo.cc:4:129: error: lvalue required as left operand of assignment
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                                                 ^~
/in/foo.cc:4:131: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::map<char, long long int>'
 string s;int sz,zm;map<char,int>a={'1'=1,'2'=2,'3'=3,'4'=4,'5'=5,'6'=6,'7'=7,'8'=8,'9'=9,'A'=10,'B'=11,'C'=12,'D'=13,'E'=14,'F'=15}
                                                                                                                                   ^

信息

递交者
类型
递交
题目
P2429 字符内码
语言
C++
递交时间
2025-01-23 11:00:01
评测时间
2025-01-23 11:00:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes