/ WHOJ /

记录详情

Compile Error

foo.cc:1:2: error: invalid preprocessing directive #innowude
    1 | #innowude<bits/stdc++.h>
      |  ^~~~~~~~
foo.cc: In function 'bool check(int, int, long int)':
foo.cc:12:25: error: expected primary-expression before 'long'
   12 |         for(int i=1; i<=long; i++)
      |                         ^~~~
foo.cc:12:25: error: expected ';' before 'long'
   12 |         for(int i=1; i<=long; i++)
      |                         ^~~~
      |                         ;
foo.cc:12:25: error: expected primary-expression before 'long'
   12 |         for(int i=1; i<=long; i++)
      |                         ^~~~
foo.cc:12:25: error: expected ')' before 'long'
   12 |         for(int i=1; i<=long; i++)
      |            ~            ^~~~
      |                         )
foo.cc:12:25: error: declaration does not declare anything [-fpermissive]
   12 |         for(int i=1; i<=long; i++)
      |                         ^~~~
foo.cc:12:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   12 |         for(int i=1; i<=long; i++)
      |         ^~~
foo.cc:12:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   12 |         for(int i=1; i<=long; i++)
      |                               ^
foo.cc:12:31: error: 'i' was not declared in this scope
foo.cc: In function 'int main()':
foo.cc:19:9: error: 'scanf' was not declared in this scope
   19 |         scanf("%d%d",&n,&m);
      |         ^~~~~
foo.cc:50:9: error: 'printf' was not declared in this scope
   50 |         printf("%d\n",ans*ans);
      |         ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #innowude<bits/stdc++.h>
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1345 计算面积
题目数据
下载
语言
C++
递交时间
2022-08-18 20:42:51
评测时间
2022-08-18 20:42:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes