Borderou de evaluare (job #1388023)

Utilizator handsonthewheelSandel Georgel handsonthewheel Data 15 martie 2015 00:25:13
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:24:17: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (a==0&&b || b==0&&a) return 0;} ^ user.cpp: In function ‘int main()’: user.cpp:54:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;i<newo.size()-1;++i){ ^ user.cpp:56:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (newo[i] == newo[j] && j < newo.size()) ++j; ^ user.cpp:61:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;i<newo.size();++i){ ^ user.cpp:32: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:33: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:35: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:37:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &ar[i]); ^ user.cpp:67: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
10ms268kbKilled by signal 11(SIGSEGV).00
20ms272kbKilled by signal 11(SIGSEGV).0
30ms276kbOk!10
40ms280kbOk!10
54ms288kbKilled by signal 11(SIGSEGV).0
60ms304kbNumar incorect de plutoane!00
70ms320kbNumar incorect de plutoane!0
80ms324kbNumar incorect de plutoane!0
94ms288kbKilled by signal 11(SIGSEGV).0
100ms280kbOk!10
Punctaj total0

Ceva nu functioneaza?