/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string getSwapped(std::__cxx11::string)':
/in/foo.cc:6:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < a.size() / 2; ++i){
                 ~~^~~~~~~~~~~~~~
/in/foo.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:24:2: error: 'swappedA' was not declared in this scope
  swappedA = getSwapped(a);
  ^~~~~~~~
/in/foo.cc:36:2: error: 'swappedB' was not declared in this scope
  swappedB = getSwapped(b);
  ^~~~~~~~

信息

递交者
类型
自测
题目
P1449 字符串还原
语言
C++
递交时间
2024-10-08 08:11:58
评测时间
2024-10-08 08:11:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes