Borderou de evaluare (job #1108462)

Utilizator dspMihaiDespotovici Mihai dspMihai Data 15 februarie 2014 18:27:32
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] fscanf(f, "%lu", &n); ^ user.cpp:12:45: warning: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] for (i=1; i<=n; i++) fscanf(f, "%lu", &v[i]); ^ user.cpp:25:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (nr>long(n/2)) ^ user.cpp:27:26: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(g, "%lu ", best); ^ user.cpp:28:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] fprintf(g, "%lu", nr); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms396kbOK10
20ms392kbOK10
34ms408kbOK10
44ms516kbOK10
520ms988kbOK10
636ms1568kbOK10
764ms2744kbOK10
8148ms6264kbOK10
9288ms12104kbOK10
10304ms11936kbOK10
Punctaj total100

Ceva nu functioneaza?