
正文
Cena评测系统在win10中测评cpp程序
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
1.装了cena-0.8.1-20110710-setup.exe
2.打补丁:cena-0.8.2-patch.zip
3.菜单->工具->选项->编程语言 修改G++ (mingw32)的配置内容为:C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe -m32 %s.cpp -o %s.exe
说明:
其中C:\Program Files (x86)\Dev-Cpp为Dev-Cpp的安装路径
cena只支持32位程序,所要加编译选项 -m32
测评软件下载
#include<iostream>
using namespace std;
int main()
{
freopen("first.in","r",stdin);
freopen("first.out","w",stdout);
string s;
cin>>s;
cout<<s<<endl;
return ;
}
var
n : String;
begin
assign(input,'first.in');
reset(input);
readln(n);
close(input); assign(output,'first.out');
rewrite(output); writeln(n);
close(output);
end.








