/ WHOJ /

记录详情

Compile Error

foo.cc:38:2: error: expected initializer before 'cin'
   38 |  cin>>n>>m;
      |  ^~~
foo.cc:39:2: error: expected unqualified-id before 'for'
   39 |  for(int i=1; i<=n; i++)
      |  ^~~
foo.cc:39:15: error: 'i' does not name a type
   39 |  for(int i=1; i<=n; i++)
      |               ^
foo.cc:39:21: error: 'i' does not name a type
   39 |  for(int i=1; i<=n; i++)
      |                     ^
foo.cc:40:16: error: 'j' does not name a type
   40 |   for(int j=1; j<=m; j++)
      |                ^
foo.cc:40:22: error: 'j' does not name a type
   40 |   for(int j=1; j<=m; j++)
      |                      ^
foo.cc:42:2: error: expected unqualified-id before 'for'
   42 |  for(int i=1; i<=n; i++)
      |  ^~~
foo.cc:42:15: error: 'i' does not name a type
   42 |  for(int i=1; i<=n; i++)
      |               ^
foo.cc:42:21: error: 'i' does not name a type
   42 |  for(int i=1; i<=n; i++)
      |                     ^
foo.cc:43:16: error: 'j' does not name a type
   43 |   for(int j=1; j<=m; j++)
      |                ^
foo.cc:43:22: error: 'j' does not name a type
   43 |   for(int j=1; j<=m; j++)
      |                      ^
foo.cc:58:2: error: 'cout' does not name a type
   58 |  cout<<ans1<<endl<<ans2<<endl;
      |  ^~~~
foo.cc:59:2: error: expected unqualified-id before 'return'
   59 |  return 0;
      |  ^~~~~~
foo.cc:60:1: error: expected declaration before '}' token
   60 | }
      | ^
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1265 卫星照片
题目数据
下载
语言
C++
递交时间
2022-07-06 22:18:29
评测时间
2022-07-06 22:18:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes