QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#778734#5266. Absolutely FlatZhaoZiLongCompile Error//C++981.0kb2024-11-24 16:02:242024-11-24 16:02:26

Details

answer.code: In function ‘int main()’:
answer.code:42:26: error: ‘it’ does not name a type; did you mean ‘int’?
   42 |                 for(auto it=st.begin();it!=st.end();it++)
      |                          ^~
      |                          int
answer.code:42:40: error: expected ‘;’ before ‘it’
   42 |                 for(auto it=st.begin();it!=st.end();it++)
      |                                        ^~
      |                                        ;
answer.code:42:40: error: ‘it’ was not declared in this scope; did you mean ‘st’?
   42 |                 for(auto it=st.begin();it!=st.end();it++)
      |                                        ^~
      |                                        st