/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void solve()':
foo.cc:85:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i = 1 ; i <= n ; ++i) head[i] = 0 , vis[i] = 0; cnt = 0; ans = 0;
  ^~~
foo.cc:85:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for(int i = 1 ; i <= n ; ++i) head[i] = 0 , vis[i] = 0; cnt = 0; ans = 0;
                                                          ^~~
foo.cc: In function 'int main()':
foo.cc:93:6: warning: unused variable 'T' [-Wunused-variable]
  int T = read(); /*while(T --)*/ solve();
      ^
foo.cc: In function 'void solve()':
foo.cc:70:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",a + 1);
  ~~~~~^~~~~~~~~~~~
foo.cc:76:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",b + 1); bs[0] = 1;
  ~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read {0}, expect {1}. ["0","5800"] 2ms 512.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["0","447915"] 3ms 512.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["0","460933"] 2ms 384.0 KiB
#4 Wrong Answer Read {0}, expect {1}. ["0","13805090"] 6ms 400.0 KiB

信息

递交者
类型
递交
题目
P1995 模式字符串
语言
C++
递交时间
2020-12-21 21:27:25
评测时间
2020-12-21 21:27:25
评测机
分数
0
总耗时
15ms
峰值内存
512.0 KiB