QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#861358#9767. 连接GuanYunchangCompile Error//C++98235b2025-01-18 17:07:262025-01-18 17:07:33

Details

answer.code: In function ‘int main()’:
answer.code:4:5: error: ‘printf’ was not declared in this scope
    4 |     printf("E. ???50??K.???17??N.???100??C. ???98?\nB.???????H.???????I. ???????P. ??(??)\nD.????????????M.?? ????O. ?? ???\nA.???????????????????????????????????\n");
      |     ^~~~~~
answer.code:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#include <cstdio>’
    1 | #include<iostream>
  +++ |+#include <cstdio>
    2 | using namespace std;