Borderou de evaluare (job #1164863)

Utilizator smaraldaSmaranda Dinu smaralda Data 2 aprilie 2014 12:40:35
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: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/ccGmfWBe.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
20ms372kbIncorect0
34ms712kbIncorect0
44ms432kbIncorect0
54ms676kbIncorect0
68ms1972kbIncorect0
78ms1868kbIncorect0
88ms1872kbIncorect0
912ms3332kbIncorect0
1024ms6260kbIncorect0
110ms368kbIncorect0
124ms400kbIncorect0
138ms704kbIncorect0
1460ms9036kbIncorect0
1556ms8472kbIncorect0
1656ms8708kbIncorect0
1736ms2952kbIncorect0
1824ms3940kbIncorect0
1924ms4896kbIncorect0
2028ms4784kbIncorect0
2140ms5884kbIncorect0
2236ms6168kbIncorect0
2348ms7668kbIncorect0
2468ms8924kbIncorect0
2568ms8936kbIncorect0
Punctaj total4

Ceva nu functioneaza?