Borderou de evaluare (job #1262556)

Utilizator tdr_drtTdr Drt tdr_drt Data 13 noiembrie 2014 12:16:25
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:13:18: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&y); ^ user.cpp:21:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:26:18: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&y); ^ user.cpp:6:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elmaj.in","r",stdin); ^ user.cpp:8:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&y); ^ user.cpp:19:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elmaj.in","r",stdin); ^ user.cpp:21:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms420kbOK10
20ms420kbOK10
30ms420kbOK10
44ms416kbOK10
528ms424kbOK10
648ms416kbOK10
7112ms424kbOK10
8248ms424kbOK10
9Depăşit268kbTime limit exceeded.0
10Depăşit268kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?