记录详情

Wrong Answer

foo.cc: In function 'int main(int, char**)':
foo.cc:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         while (nIndex < strExpression.size())
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:46:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |         while (nIndex < strExpression.size())
      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:91:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<CharUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   91 |                 for (int i = 0; i < vtCharStack.size(); i++)
      |                                 ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:98:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<CharUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   98 |                         for (int i = 0; i < vtLeftSet.size(); i++)
      |                                         ~~^~~~~~~~~~~~~~~~~~
foo.cc:27:25: warning: unused variable 'nDepth' [-Wunused-variable]
   27 |         int nIndex = 0, nDepth = 0;
      |                         ^~~~~~
foo.cc:81:27: warning: unused variable 'nRightTag' [-Wunused-variable]
   81 |         int nLeftTag = 0, nRightTag = 0;
      |                           ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 408.0 KiB
#4 Wrong Answer Standard answer longer than user output. 3ms 412.0 KiB
#5 Wrong Answer User output longer than standard answer. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1055 OO11-7 stack和括号的匹配、失配
语言
C++
递交时间
2023-10-20 23:29:23
评测时间
2023-10-20 23:29:23
评测机
分数
60
总耗时
19ms
峰值内存
412.0 KiB