Pagini recente » Borderou de evaluare (job #2949523) | Borderou de evaluare (job #1746735) | Borderou de evaluare (job #1694397) | Borderou de evaluare (job #1961886) | Borderou de evaluare (job #2264430)
Borderou de evaluare (job #2264430)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:22:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(i-w.front()>=k+1)
^~
main.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[w.front()]-a[d.front()]>mmax) mmax=a[w.front()]-a[d.front()];
^~
main.cpp:12:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&k);
^
main.cpp:13:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++){fscanf(f,"%d",&a[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 131kb | OK | 10 |
| 2 | 5ms | 131kb | OK | 10 |
| 3 | 5ms | 131kb | OK | 10 |
| 4 | 11ms | 262kb | OK | 10 |
| 5 | 11ms | 262kb | OK | 10 |
| 6 | 20ms | 266kb | OK | 10 |
| 7 | 24ms | 389kb | OK | 10 |
| 8 | 16ms | 274kb | OK | 10 |
| 9 | 36ms | 499kb | OK | 10 |
| 10 | 35ms | 532kb | OK | 10 |
| Punctaj total | 100 |