Borderou de evaluare (job #1338208)

Utilizator smaraldaSmaranda Dinu smaralda Data 9 februarie 2015 21:03:55
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int getInt(int&)’: user.cpp:24:34: warning: NULL used in arithmetic [-Wpointer-arith] while(digit(r[p]) && r[p] != NULL) { ^ user.cpp: In function ‘int main()’: user.cpp:53:19: warning: NULL used in arithmetic [-Wpointer-arith] while(r[i] != NULL) { ^ user.cpp:69:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < sol.size(); ++ i) ^ user.cpp:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta2.in", "r", stdin); ^ user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta2.out", "w", stdout); ^ user.cpp:50:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(r); ^ /tmp/ccQ0MuGH.o: In function `main': user.cpp:(.text.startup+0x5c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK!10
20ms268kbOK!10
30ms276kbOK!10
40ms272kbOK!10
50ms268kbOK!10
60ms280kbOK!10
70ms272kbOK!10
80ms280kbOK!10
90ms280kbOK!10
100ms276kbOK!10
Punctaj total100

Ceva nu functioneaza?