Borderou de evaluare (job #1220480)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 17 august 2014 14:53:39
Problema Lant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void afla(int)’: user.cpp:64:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<g[nod].size();++i) ^ user.cpp: In function ‘int main()’: user.cpp:75:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lant.in","r",stdin); ^ user.cpp:76:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lant.out","w",stdout); ^ user.cpp:78:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &k); ^ user.cpp:79:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:89:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc1ER9s9.o: In function `main': user.cpp:(.text.startup+0x69): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms288kbIncorect0
24ms304kbIncorect0
34ms320kbIncorect0
40ms308kbIncorect0
50ms288kbOK10
60ms284kbIncorect0
70ms284kbOK10
88ms300kbIncorect0
90ms308kbIncorect0
100ms408kbKilled by signal 6(SIGABRT).0
Punctaj total20

Ceva nu functioneaza?