QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#50128#4633. Coprime MatricesMaMengQiCompile Error//C++171.9kb2022-09-24 17:01:052022-09-24 17:01:07

Details

answer.code: In member function ‘void SAM::init()’:
answer.code:32:16: error: ‘fst’ was not declared in this scope; did you mean ‘lst’?
   32 |         memset(fst, 0, sizeof(fst));
      |                ^~~
      |                lst
answer.code: In member function ‘void SAM::calc()’:
answer.code:61:35: error: no match for ‘operator[]’ (operand types are ‘int [4000012]’ and ‘node’)
   61 |         for (auto x: vec) cnt[link[x]] += cnt[x];
      |                                   ^
answer.code:61:46: error: no match for ‘operator[]’ (operand types are ‘int [4000012]’ and ‘node’)
   61 |         for (auto x: vec) cnt[link[x]] += cnt[x];
      |                                              ^
answer.code: In function ‘int main()’:
answer.code:70:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   70 |     scanf("%s", S); N = strlen(S);
      |     ~~~~~^~~~~~~~~