Pagini recente » Borderou de evaluare (job #863112) | Borderou de evaluare (job #2597039) | Borderou de evaluare (job #2851752) | Borderou de evaluare (job #766161) | Borderou de evaluare (job #1388023)
Borderou de evaluare (job #1388023)
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 |
1 | 0ms | 268kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
2 | 0ms | 272kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 276kb | Ok! | 10 |
4 | 0ms | 280kb | Ok! | 10 |
5 | 4ms | 288kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 304kb | Numar incorect de plutoane! | 0 | 0 |
7 | 0ms | 320kb | Numar incorect de plutoane! | 0 |
8 | 0ms | 324kb | Numar incorect de plutoane! | 0 |
9 | 4ms | 288kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 280kb | Ok! | 10 |
Punctaj total | 0 |