Borderou de evaluare (job #1164871)

Utilizator smaraldaSmaranda Dinu smaralda Data 2 aprilie 2014 12:41:53
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&)’: user.cpp:33:20: warning: NULL used in arithmetic [-Wpointer-arith] while(ln[i] != NULL && isdigit(ln[i])) { ^ user.cpp:40:20: warning: NULL used in arithmetic [-Wpointer-arith] while(ln[i] != NULL && isdigit(ln[i])) { ^ user.cpp:47:17: warning: NULL used in arithmetic [-Wpointer-arith] while(ln[i] != NULL && isdigit(ln[i])) { ^ user.cpp:29:9: warning: unused variable ‘len’ [-Wunused-variable] int len, i; ^ user.cpp: In function ‘int main()’: user.cpp:87:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[1000005]’ [-Wformat=] scanf("\n%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/ccw7bkmY.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
10ms364kbOK4
20ms376kbIncorect0
34ms716kbIncorect0
44ms432kbIncorect0
54ms680kbIncorect0
68ms1972kbIncorect0
78ms1868kbIncorect0
88ms1872kbIncorect0
912ms3336kbIncorect0
1024ms6260kbIncorect0
110ms364kbIncorect0
124ms404kbIncorect0
138ms708kbIncorect0
1460ms9036kbIncorect0
1556ms8472kbIncorect0
1656ms8708kbIncorect0
1740ms2956kbIncorect0
1824ms3932kbIncorect0
1924ms4896kbIncorect0
2028ms4780kbIncorect0
2140ms5884kbIncorect0
2236ms6172kbIncorect0
2348ms7672kbIncorect0
2468ms8924kbIncorect0
2568ms8932kbIncorect0
Punctaj total4

Ceva nu functioneaza?