/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int tip(int)':
foo.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cpp: In function 'int main()':
foo.cpp:35:13: error: expected unqualified-id before 'new'
     int i,j,new,ans[1000],ansn,tmpb;
             ^
foo.cpp:51:20: error: expected type-specifier before '=' token
                 new=newnode();
                    ^
foo.cpp:52:26: error: expected type-specifier before ']' token
                 queue[new]=queue[temp];
                          ^
foo.cpp:56:13: error: 'ansn' was not declared in this scope
             ansn=0;
             ^
foo.cpp:57:13: error: 'tmpb' was not declared in this scope
             tmpb=head;
             ^
foo.cpp:59:17: error: 'ans' was not declared in this scope
                 ans[ansn]=queue[tmpb].change;
                 ^
foo.cpp:67:11: error: 'ans' was not declared in this scope
     qsort(ans,ansn,sizeof(ans[0]),cmp);
           ^
foo.cpp:67:15: error: 'ansn' was not declared in this scope
     qsort(ans,ansn,sizeof(ans[0]),cmp);
               ^
foo.cpp:67:38: error: 'qsort' was not declared in this scope
     qsort(ans,ansn,sizeof(ans[0]),cmp);
                                      ^

信息

递交者
类型
递交
题目
P1016 北京2008的挂钟
语言
C++
递交时间
2016-04-28 16:59:51
评测时间
2016-04-28 16:59:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes