ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Why can't I use <string.h> and <malloc.h>?
Posted by Helicorn 11 Jan 2003 02:47
This resulted CE:
----------------------------------
// 1000, C++
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <conio.h>
void main(){
    int a,b;
    scanf("%d%d", &a, &b);
    printf("%d", a+b);
}
---------------------------------
What is allowed to include?
You can use the first but the second. You should use<stdlib.h> instead of the second.
Posted by Innovative Cat. 11 Jan 2003 18:42
Thanks.
Posted by Helicorn 11 Jan 2003 20:24
subj