QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#619321#8242. V-DiagramHuangHanShengCompile Error//C++98474b2024-10-07 13:52:362024-10-07 13:52:36

詳細信息

answer.code: In function ‘int main()’:
answer.code:27:5: error: ‘printf’ was not declared in this scope
   27 |     printf("%.10lf\n",sum/x);}
      |     ^~~~~~
answer.code:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
    1 | #include <iostream>
  +++ |+#include <cstdio>
    2 | using namespace std;