/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int in()':
foo.cc:9:7: warning: unused variable 'c' [-Wunused-variable]
  char c;
       ^
foo.cc:10:6: warning: unused variable 'i' [-Wunused-variable]
  int i = 0;
      ^
foo.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:44:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < strlen(str);i++)
                   ~~^~~~~~~~~~~~~
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d\n",&p1,&p2,&p3);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int in()':
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",str);
  ~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Wrong Answer 读取到 --09-8-w-er-7h-0... ,应为 --09-8-w-er-7h-0... 0ms 256.0 KiB
#7 Accepted 0ms 256.0 KiB
#8 Runtime Error Segmentation fault 2ms 256.0 KiB
#9 Runtime Error Segmentation fault 2ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1379 字符串的展开
语言
C++
递交时间
2020-12-05 11:31:54
评测时间
2020-12-05 11:31:54
评测机
分数
70
总耗时
12ms
峰值内存
256.0 KiB