Borderou de evaluare (job #1256736)

Utilizator PatrikStepan Patrik Patrik Data 6 noiembrie 2014 20:13:19
Problema Cifre4 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve()’: user.cpp:37:29: error: ‘malloc’ was not declared in this scope str.val = (char * )malloc(1); ^ user.cpp: In function ‘int main()’: user.cpp:20:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.in" , "r" , stdin ); ^ user.cpp:21:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifre4.out" , "w" , stdout ); ^ user.cpp:23:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &T ); ^ user.cpp:26:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d" , &N , &P ); ^

Ceva nu functioneaza?