/ Vijos /

记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:5:1: error: unknown type name 'bool'
 bool go;
 ^~~~
/in/foo.c: In function 'paixu':
/in/foo.c:12:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if ((a[i]>a[j])||(a[i]==a[j])&&(b[i]>b[j]))
                  ~~~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c: In function 'main':
/in/foo.c:32:21: error: 'false' undeclared (first use in this function)
 ans=1;time=0;k=1;go=false;
                     ^~~~~
/in/foo.c:32:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:42:4: error: 'true' undeclared (first use in this function)
 go=true;
    ^~~~
/in/foo.c:45:3: error: expected expression before 'long'
 t=long(a[k]-time);
   ^~~~

信息

递交者
类型
递交
题目
P1401 复制CS
语言
C
递交时间
2018-01-27 21:49:35
评测时间
2018-01-27 21:49:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes