Borderou de evaluare (job #1351710)

Utilizator UAIC_Onesim_Popoiu_TucarUAIC-Tucar-Onesim UAIC_Onesim_Popoiu_Tucar Data 21 februarie 2015 11:26:12
Problema Por Costel si Perechile Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:12:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perechi3.in","r",stdin); ^ user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perechi3.out","w",stdout); ^ user.cpp:9:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1172ms288kbOK100
Punctaj total100

Ceva nu functioneaza?