Borderou de evaluare (job #1164838)

Utilizator smaraldaSmaranda Dinu smaralda Data 2 aprilie 2014 12:33:38
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/ccByc6NP.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
34ms716kbIncorect0
44ms428kbIncorect0
54ms684kbIncorect0
68ms1972kbIncorect0
78ms1868kbIncorect0
88ms1872kbIncorect0
912ms3336kbIncorect0
1020ms6256kbIncorect0
110ms360kbIncorect0
124ms400kbIncorect0
138ms704kbIncorect0
1460ms9036kbIncorect0
1560ms8472kbIncorect0
1656ms8704kbIncorect0
1740ms2952kbIncorect0
1824ms3936kbIncorect0
1924ms4896kbIncorect0
2028ms4776kbIncorect0
2140ms5880kbIncorect0
2232ms6176kbIncorect0
2348ms7672kbIncorect0
2468ms8924kbIncorect0
2568ms8936kbIncorect0
Punctaj total4

Ceva nu functioneaza?