Borderou de evaluare (job #1595008)

Utilizator antanaAntonia Boca antana Data 9 februarie 2016 21:18:09
Problema Text4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:9: warning: variable ‘n’ set but not used [-Wunused-but-set-variable] int n, i, lmax, pred, nr, sp, pp, m, r, nw, i1; ^ user.cpp:26:35: warning: unused variable ‘pp’ [-Wunused-variable] int n, i, lmax, pred, nr, sp, pp, m, r, nw, i1; ^ user.cpp:26:39: warning: unused variable ‘m’ [-Wunused-variable] int n, i, lmax, pred, nr, sp, pp, m, r, nw, i1; ^ user.cpp:27:10: warning: unused variable ‘c’ [-Wunused-variable] char c; ^ user.cpp:24:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text4.in", "r", stdin); ^ user.cpp:25:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text4.out", "w", stdout); ^ user.cpp:28:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &lmax); ^ user.cpp:29:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:88:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccg7RpLV.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbKilled by signal 8(SIGFPE).0
20ms260kbKilled by signal 8(SIGFPE).0
30ms272kbIncorect0
40ms272kbOK10
50ms272kbIncorect0
60ms272kbIncorect0
70ms268kbIncorect0
80ms272kbIncorect0
90ms232kbKilled by signal 8(SIGFPE).0
100ms268kbIncorect0
Punctaj total10

Ceva nu functioneaza?