Borderou de evaluare (job #1408171)

Utilizator VladuZ1338Vlad Vlad VladuZ1338 Data 29 martie 2015 21:16:06
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d", &n); ^ user.cpp:14:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d", &a); ^ user.cpp:21:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (v[sol]>=n/2+1) printf ("%d %d", sol, v[sol]); ^ user.cpp:21:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:9:37: 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:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("elmaj.out", "w", stdout); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ user.cpp:14:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbIncorect0
20ms380kbIncorect0
30ms488kbIncorect0
40ms504kbIncorect0
512ms504kbIncorect0
628ms500kbIncorect0
752ms504kbIncorect0
8128ms504kbIncorect0
9252ms252kbIncorect0
10280ms508kbIncorect0
Punctaj total0

Ceva nu functioneaza?