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 0;
}
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.

 

posted @ 2018-01-29 19:10  shiningrise  阅读(1026)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css