Borderou de evaluare (job #1206061)

Utilizator smaraldaSmaranda Dinu smaralda Data 8 iulie 2014 19:42:55
Problema Gheizere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In member function ‘void GAY::read()’: user.cpp:20:29: warning: NULL used in arithmetic [-Wpointer-arith] for(i = 0; ln[i] != NULL; ++ i) ^ user.cpp:26:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:32:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:38:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:44:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp: In function ‘int main()’: user.cpp:59:24: warning: unused variable ‘dir’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:59:29: warning: unused variable ‘newi’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:59:35: warning: unused variable ‘newj’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:57:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gheizere.in", "r", stdin); ^ user.cpp:58:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gheizere.out", "w", stdout); ^ user.cpp:61:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d\n", &n, &m, &p, &v, &e); ^ user.cpp: In member function ‘void GAY::read()’: user.cpp:18:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ln); ^ /tmp/cciCbKme.o: In function `main': user.cpp:(.text.startup+0xba): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms408kbOK1040
2628ms420kbOK10
3280ms420kbOK10
428ms416kbOK10
5172ms416kbOK1030
6444ms416kbOK10
7300ms424kbOK10
8392ms420kbOK1030
9392ms420kbOK10
10308ms420kbOK10
Punctaj total100

Ceva nu functioneaza?