/ Vijos /

记录详情

Compile Error

foo.cc:10:22: error: stray '#' in program
   10 |         l[i]=r[i]=1;a#include<iostream>
      |                      ^
foo.cc: In function 'int main()':
foo.cc:10:21: error: 'a' was not declared in this scope
   10 |         l[i]=r[i]=1;a#include<iostream>
      |                     ^
In file included from foo.cc:12:
/usr/include/c++/9/cstring:71:8: error: expected unqualified-id before string constant
   71 | extern "C++"
      |        ^~~~~
foo.cc:20:1: error: a function-definition is not allowed here before '{' token
   20 | {
      | ^
foo.cc:27:1: error: a function-definition is not allowed here before '{' token
   27 | {
      | ^
foo.cc:18:7: warning: unused variable 'n' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |       ^
foo.cc:18:9: warning: unused variable 'k' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |         ^
foo.cc:18:11: warning: unused variable 'L' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |           ^
foo.cc:18:13: warning: unused variable 'q' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |             ^
foo.cc:18:21: warning: unused variable 'p' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                     ^
foo.cc:18:29: warning: unused variable 'l' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                             ^
foo.cc:18:34: warning: unused variable 'r' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                                  ^
foo.cc:18:39: warning: unused variable 't' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                                       ^
foo.cc:18:47: warning: unused variable 'f' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                                               ^
foo.cc:18:55: warning: unused variable 'ans' [-Wunused-variable]
   18 | int m,n,k,L,q[N][M],p[N][M],l[N],r[N],t[N][M],f[N][M],ans=INF;
      |                                                       ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1243 生产产品
语言
C++
递交时间
2022-02-26 19:33:26
评测时间
2022-02-26 19:33:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes