/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream>
 ^
foo.cpp:9:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
foo.cpp: In function 'int main()':
foo.cpp:11:1: error: 'cin' was not declared in this scope
 cin>>n>>m; for (int i=1;i<=n;i++) cin>>a[i]; for (int i=1;i<=m;i++) next_permutation(a+1,a+n+1); for (int i=1;i<=n;i++) cout<<a[i]<<' '; }
 ^
foo.cpp:11:95: error: 'next_permutation' was not declared in this scope
 cin>>n>>m; for (int i=1;i<=n;i++) cin>>a[i]; for (int i=1;i<=m;i++) next_permutation(a+1,a+n+1); for (int i=1;i<=n;i++) cout<<a[i]<<' '; }
                                                                                               ^
foo.cpp:11:121: error: 'cout' was not declared in this scope
 cin>>n>>m; for (int i=1;i<=n;i++) cin>>a[i]; for (int i=1;i<=m;i++) next_permutation(a+1,a+n+1); for (int i=1;i<=n;i++) cout<<a[i]<<' '; }
                                                                                                                         ^

信息

递交者
类型
递交
题目
P1115 火星人
语言
C++
递交时间
2016-05-22 20:57:49
评测时间
2016-05-22 20:57:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes