Borderou de evaluare (job #1388017)

Utilizator handsonthewheelSandel Georgel handsonthewheel Data 15 martie 2015 00:17:18
Problema Pluton Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int equal(int, int)’: user.cpp:23:17: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a==0&&b || b==0&&a) return 0;} ^ user.cpp: In function ‘int main()’: user.cpp:53:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;i<newo.size()-1;++i){ ^ user.cpp:55:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (newo[i] == newo[j] && j < newo.size()) ++j; ^ user.cpp:31:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("pluton.in", "r", stdin); ^ user.cpp:32:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("pluton.out", "w", stdout); ^ user.cpp:34:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int nrp = 0; scanf ("%d",&n); ^ user.cpp:36:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &ar[i]); ^ user.cpp:62:37: warning: ‘Q’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (i=1;i<=n;i++) if (equal(Q,ar[i])) printf ("%d ", ar[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms276kbOk!100
20ms272kbOk!10
30ms264kbNumar incorect de plutoane!0
40ms268kbNumar incorect de plutoane!0
54ms304kbNumar incorect de plutoane!0
60ms292kbOk!100
70ms304kbAfisare gresita a soldatilor!7
80ms304kbNumar incorect de plutoane!0
94ms308kbOk!10
100ms268kbOk!10
Punctaj total0

Ceva nu functioneaza?