Pagini recente » Borderou de evaluare (job #2896451) | Borderou de evaluare (job #1162916) | Borderou de evaluare (job #1095033) | Borderou de evaluare (job #2475841) | Borderou de evaluare (job #2856399)
Borderou de evaluare (job #2856399)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:44:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
44 | else if(next>ultima)
| ^~
main.cpp:46:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
46 | semafor2=0;
| ^~~~~~~~
main.cpp:11:59: warning: variable 'prima' set but not used [-Wunused-but-set-variable]
11 | int n,max1=0,max2=0,semafor1=1,semafor2=1,ultima,next,prima,suma=0;
| ^~~~~
main.cpp:45:32: warning: 'next' may be used uninitialized in this function [-Wmaybe-uninitialized]
45 | suma=(suma+v[i]*next)-next;
| ~~~~^~~~~
main.cpp:43:27: warning: 'ultima' may be used uninitialized in this function [-Wmaybe-uninitialized]
43 | suma=(suma-ultima)+ultima*v[i];
| ~~~~~^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 188kb | Incorect | 0 |
3 | 2ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | OK | 10 |
6 | 2ms | 184kb | Incorect | 0 |
7 | 2ms | 184kb | Incorect | 0 |
8 | 2ms | 184kb | Incorect | 0 |
9 | 2ms | 200kb | Incorect | 0 |
10 | 2ms | 184kb | Incorect | 0 |
Punctaj total | 20 |