Borderou de evaluare (job #1108459)

Utilizator dspMihaiDespotovici Mihai dspMihai Data 15 februarie 2014 18:19:36
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: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:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] for (i=1; i<=n; i++) fscanf(f, "%d", &v[i]); ^ user.cpp:25:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (nr>long(n/2)) fprintf(g, "%lu", best); ^ user.cpp:25:42: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] if (nr>long(n/2)) fprintf(g, "%lu", best); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms404kbIncorect0
20ms404kbIncorect0
34ms420kbIncorect0
44ms524kbIncorect0
520ms996kbIncorect0
632ms1572kbIncorect0
732ms1156kbKilled by signal 11(SIGSEGV).0
828ms1164kbKilled by signal 11(SIGSEGV).0
932ms1164kbKilled by signal 11(SIGSEGV).0
1036ms1156kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?