Borderou de evaluare (job #1206052)

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

Raport evaluator

Compilare: user.cpp: In member function ‘void GAY::read()’: user.cpp:21:29: warning: NULL used in arithmetic [-Wpointer-arith] for(i = 0; ln[i] != NULL; ++ i) ^ user.cpp:27:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:33:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:39:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp:45:28: warning: NULL used in arithmetic [-Wpointer-arith] for(++ i; ln[i] != NULL; ++ i) ^ user.cpp: In function ‘int main()’: user.cpp:77:24: warning: unused variable ‘dir’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:77:29: warning: unused variable ‘newi’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:77:35: warning: unused variable ‘newj’ [-Wunused-variable] int v, e, i, j, k, dir, newi, newj, now, t, ant; ^ user.cpp:75: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:76: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:79: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:19:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ln); ^ /tmp/ccmttO2C.o: In function `main': user.cpp:(.text.startup+0xb3): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1176kbOK1040
2564ms1756kbOK10
3308ms1524kbOK10
420ms1264kbOK10
5120ms1512kbOK1030
6592ms1572kbOK10
7476ms1444kbOK10
8696ms1400kbOK100
9Depăşit1412kbTime limit exceeded.0
10536ms1428kbOK10
Punctaj total70

Ceva nu functioneaza?