QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#96786#6128. Flippy SequenceGuanYunchangCompile Error//C11900b2023-04-15 16:18:442023-04-15 16:18:47

Details

answer.code: In function ‘main’:
answer.code:57:4: error: ‘cout’ undeclared (first use in this function); did you mean ‘cnt’?
    cout << res1 + res2 << endl;
    ^~~~
    cnt
answer.code:57:4: note: each undeclared identifier is reported only once for each function it appears in
answer.code:57:27: error: ‘endl’ undeclared (first use in this function)
    cout << res1 + res2 << endl;
                           ^~~~
answer.code:15:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&T);
  ^~~~~~~~~~~~~~
answer.code:19:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&n);
   ^~~~~~~~~~~~~~
answer.code:20:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",s);
   ^~~~~~~~~~~~~
answer.code:29:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",s);
   ^~~~~~~~~~~~~