QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#299161#7901. Basic Substring Structureucup-team244#Compile Error//C++145.6kb2024-01-06 17:28:422024-01-06 17:28:42

Details

answer.code: In function ‘void lcp_array()’:
answer.code:71:14: error: expected ‘;’ before ‘}’ token
   71 |             h//eigh[rank[i]] = lcp;
      |              ^
      |              ;
   72 |         }
      |         ~     
answer.code: In function ‘void solve()’:
answer.code:97:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   97 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
answer.code:100:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  100 |         scanf("%d",&ss[i]);
      |         ~~~~~^~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:200:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  200 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~