/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <stdio.h>
 ^
foo.cpp: In function 'bool judge1(int*, int)':
foo.cpp:4:348: error: 'i2' was not declared in this scope
 const int INF=1<<30; bool judge1(int l[MAXN+1],int n){ bool flag=true; int t; int i; if(n==0){ return true; } if(n%2==0){ flag=false; } t=n/2; if(l[1]<l[2]){if(flag==false){ l[n+1]=INF; } for(i=1;i<=t;i++){ if(l[i]<l[i*2]&&l[i]<l[i*2+1]){ } else{return false;} } return true; } else{ if(flag==false){ l[n+1]=-INF; } for(i=1;i<=n/2;i++){ if(l[i]>l[i2]&&l[i]>l[i2+1]){
                                                                                                                                                                                                                                                                                                                                                            ^
foo.cpp: In function 'bool judge2(int*, int)':
foo.cpp:23:11: error: 'i2' was not declared in this scope
 if(l[i]>l[i2]&&l[i]<l[i2+1]){
           ^
foo.cpp: In function 'int main()':
foo.cpp:43:14: error: 'scanf' was not declared in this scope
 scanf("%d",&t);
              ^
foo.cpp:52:28: error: 'printf' was not declared in this scope
 printf("Case #%d: Both\n",i);
                            ^
foo.cpp:55:28: error: 'printf' was not declared in this scope
 printf("Case #%d: Heap\n",i);
                            ^
foo.cpp:58:27: error: 'printf' was not declared in this scope
 printf("Case #%d: BST\n",i);
                           ^
foo.cpp:61:31: error: 'printf' was not declared in this scope
 printf("Case #%d: Neither\n",i);
                               ^

信息

递交者
类型
递交
题目
P1897 学姐吃牛排
语言
C++
递交时间
2014-11-01 11:43:02
评测时间
2014-11-01 11:43:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes