Allowed/restricted C functions

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
Cubist
New poster
Posts: 17
Joined: Sun May 26, 2002 7:56 am
Location: San Diego, CA

Allowed/restricted C functions

Post by Cubist »

Is there a list somewhere of allowed/restricted C functions for Valladolid?
I seem to recall one somewhere, but I can't find it now. I seem to
recall that it listed allowed/restricted Pascal and Unix functions, as well.
--
Chris Long, Mathematics Department, Rutgers University

The beatings will continue until morale improves.

fpnc
System administrator
Posts: 201
Joined: Sun Oct 07, 2001 2:00 am
Location: Valladolid, Spain

Post by fpnc »

Altought I don't know if that list is public or not, I can say that you cannot do anything that access files, or network, or anything more than stricted needed to solve these problems. Also, as we do this comprobation at linking level, it doesn't matter what language you use (c, c++, pascal, java).
Best regards,

Fernando N

Subeen
Experienced poster
Posts: 127
Joined: Tue Nov 06, 2001 2:00 am
Location: Bangladesh
Contact:

Post by Subeen »

the functions that are supported by ANSI are allowed. and functions only for Dos / windows / os2 are not allowed.

here is a list of used header files...
The following set of includes are used for C and C++:


/* These files will be included into all ACM contest submissions. */

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <strings.h>
#include <string.h>
#define __EXTENSIONS__
#include <math.h>
#include <limits.h>
#include <assert.h>

The following set of includes are used for the mini C++ only:

#include <iostream>
#include <iomanip>

The following set of includes are used for full C++ only:

#include <iostream>
#include <iomanip>
#include <string>
#include <stl.h>
#include <algorithm>
#include <queue>
#include <set>
#include <vector>
#include <strstream>

Post Reply

Return to “C”