/ Scoj /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:33:44: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   33 |        (string(ptr->d_name).rfind(".out",l)==l-4||
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
foo.cc:34:44: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   34 |         string(ptr->d_name).rfind(".ans",l)==l-4))
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
foo.cc:39:11: warning: ignoring return value of 'char* realpath(const char*, char*)', declared with attribute warn_unused_result [-Wunused-result]
   39 |   realpath(".",s);
      |   ~~~~~~~~^~~~~~~
foo.cc:56:9: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   56 |   system(("cp -f ../../data/"+f+'/'+v[n].second+" "+f+".out").c_str());
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1000 Hello, wold!
语言
C++
递交时间
2022-07-05 15:58:09
评测时间
2022-07-05 15:58:09
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB