Borderou de evaluare (job #1108461)

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

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
10ms392kbOK10
20ms396kbOK10
34ms408kbOK10
44ms512kbOK10
520ms984kbOK10
632ms1564kbOK10
728ms1156kbKilled by signal 11(SIGSEGV).0
828ms1152kbKilled by signal 11(SIGSEGV).0
928ms1152kbKilled by signal 11(SIGSEGV).0
1028ms1148kbKilled by signal 11(SIGSEGV).0
Punctaj total60

Ceva nu functioneaza?