noip2009又废了



noip2009提高组105分,二等,悲剧。

可能没有比我更悲剧的了,第一题弱智,就是被阴了也是80~90。我还有另外一位同学0分,编译错误(C++语言)。代码如下。

#include <fstream>
#include <string>
#include <stdio.h>
 
using namespace std;
 
string crypt;
char list['Z']; //这个地方考试的时候写的'Z',而不是'Z'+1(忘了),但是理论上不会崩,因为内存按页分配而不是按字节分配
 
int main()
{
	/*
	 * 省略代码核心内容
	 * 没考虑双向等小细节
	 * 心理学观点分析不会太惨,因为不会有太多的Fail
	 */
	return 0;
}

详细的错误内容

xx.cpp:7: error: ‘std::string crypt’ redeclared as different kind of symbol
/usr/include/unistd.h:1115: error: previous declaration of ‘char* crypt(const char*, const char*)’

经过控制变量法得之fstream和string中把unistd.h搞进来了。

另外一位同学只用了C的标准类型,但他没事去#include <iostream>一样的出事了。

选手的环境是Dev-Cpp,还有虚拟机里面的Red Hat 9.0,gcc/g++都是3点几的,评测时候4几。没法,全国不认。

noi[五笔] = 屎

改掉后实测结果80分…..185,一等,悲剧了。

Jan 3rd, 2010 | Posted in 我的生活
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
TimeZone: GMT.
Except as otherwise noted,all original text and pictures without persons in it are published under the GNU Free Document License, all original codes are published under the Apache License,all photos with persons in it are copyright protected, and all forwarded content is copyrighted by the copyright owner.The owner of the content keeps the permission of changing the publication license
ICP Number for Non-profit Internet Service in PRC is (Sichuan) No.09034160