QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#151266#5553. Alternative ArchitectureZhangYiDeCompile Error//C++17772b2023-08-26 16:12:472023-08-26 16:12:49

詳細信息

answer.code: In function ‘int main()’:
answer.code:28:16: error: ‘sqrt’ was not declared in this scope
   28 |             if(sqrt(j) * sqrt(j) == j) cnt++;
      |                ^~~~
answer.code:19:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |     scanf("%d%d", &N, &M);
      |     ~~~~~^~~~~~~~~~~~~~~~