Borderou de evaluare (job #1108458)

Utilizator dspMihaiDespotovici Mihai dspMihai Data 15 februarie 2014 18:19: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 3 has type ‘long long unsigned int*’ [-Wformat=] fscanf(f, "%d", &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
10ms396kbIncorect0
20ms396kbIncorect0
34ms416kbIncorect0
44ms516kbIncorect0
516ms988kbIncorect0
636ms1564kbIncorect0
736ms1156kbKilled by signal 11(SIGSEGV).0
828ms1156kbKilled by signal 11(SIGSEGV).0
932ms1160kbKilled by signal 11(SIGSEGV).0
1032ms1156kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?