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
using namespace std;
int main()
{
    freopen("first.in","r",stdin); 
    freopen("first.out","w",stdout); 
    string s;
    cin>>s;
    cout<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.

 

你可能感兴趣的:(Cena评测系统在win10中测评cpp程序)