Borderou de evaluare (job #1164837)

Utilizator smaraldaSmaranda Dinu smaralda Data 2 aprilie 2014 12:33:20
Problema Mine Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘void get(int, int&, int&, int&)’: user.cpp:33:19: warning: NULL used in arithmetic [-Wpointer-arith] while(s[i] != NULL && isdigit(s[i])) { ^ user.cpp:40:19: warning: NULL used in arithmetic [-Wpointer-arith] while(s[i] != NULL && isdigit(s[i])) { ^ user.cpp:47:16: warning: NULL used in arithmetic [-Wpointer-arith] while(s[i] != NULL && isdigit(s[i])) { ^ user.cpp:29:9: warning: unused variable ‘len’ [-Wunused-variable] int len, i; ^ user.cpp: In function ‘int main()’: user.cpp:87:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[1000005]’ [-Wformat=] scanf("%d\n",&w); ^ user.cpp:91:17: warning: NULL used in arithmetic [-Wpointer-arith] while(ln[i] != NULL) { ^ user.cpp:79:35: warning: unused variable ‘len’ [-Wunused-variable] int n, m, i, x, y, num, k, t, len, W, node; ^ user.cpp:79:43: warning: unused variable ‘node’ [-Wunused-variable] int n, m, i, x, y, num, k, t, len, W, node; ^ user.cpp:111:29: warning: ‘W’ may be used uninitialized in this function [-Wmaybe-uninitialized] while(!heap.empty() && t <= W && w[t] < heap.top().cost) ^ /tmp/cc7IF2wi.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms368kbOK4
20ms380kbIncorect0
34ms712kbIncorect0
44ms432kbIncorect0
54ms684kbIncorect0
68ms1976kbIncorect0
78ms1872kbIncorect0
88ms1868kbIncorect0
912ms3328kbIncorect0
1020ms6256kbIncorect0
110ms364kbIncorect0
124ms404kbIncorect0
138ms700kbIncorect0
1460ms9032kbIncorect0
1556ms8472kbIncorect0
1656ms8704kbIncorect0
1736ms2960kbIncorect0
1824ms3932kbIncorect0
1924ms4896kbIncorect0
2028ms4784kbIncorect0
2140ms5876kbIncorect0
2232ms6172kbIncorect0
2348ms7676kbIncorect0
2468ms8924kbIncorect0
2568ms8932kbIncorect0
Punctaj total4

Ceva nu functioneaza?