Pagini recente » Borderou de evaluare (job #2489115) | Borderou de evaluare (job #1661694) | Atasamentele paginii Profil kis_lori | Borderou de evaluare (job #58820) | Borderou de evaluare (job #1297237)
Borderou de evaluare (job #1297237)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (low >= 0 && low < s.size()) Min=min(Min,abs(v[i] - s[low]));
~~~~^~~~~~~~~~
user.cpp:24:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (low >= 1 && low - 1 < s.size()) Min=min(Min,abs(v[i] - s[low-1]));
~~~~~~~~^~~~~~~~~~
user.cpp:25:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (low + 1 < s.size()) Min=min(Min,abs(s[low + 1] - v[i]));
~~~~~~~~^~~~~~~~~~
user.cpp:27:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (vector < int > ::iterator it = s.begin();it != s.end();++it) cout << *it << ' ';cout << '\n';
^~~
user.cpp:27:94: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for (vector < int > ::iterator it = s.begin();it != s.end();++it) cout << *it << ' ';cout << '\n';
^~~~
user.cpp: In function ‘int read()’:
user.cpp:7:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
char c[12];scanf("%s",c);int p=0;
^
user.cpp: In function ‘int main()’:
user.cpp:15:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("slidingwindow.in","r",stdin);
^
user.cpp:29:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("slidingwindow.out","w",stdout);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1320kb | OK | 5 |
| 2 | 0ms | 1324kb | OK | 5 |
| 3 | 0ms | 1320kb | OK | 5 |
| 4 | Depăşit | 3504kb | Time limit exceeded. | 0 |
| 5 | Depăşit | 3500kb | Time limit exceeded. | 0 |
| 6 | Depăşit | 3508kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 3504kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 1352kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 1352kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 1348kb | Time limit exceeded. | 0 |
| 11 | Depăşit | 1352kb | Time limit exceeded. | 0 |
| 12 | Depăşit | 1364kb | Time limit exceeded. | 0 |
| 13 | Depăşit | 1364kb | Time limit exceeded. | 0 |
| 14 | Depăşit | 1368kb | Time limit exceeded. | 0 |
| 15 | Depăşit | 1372kb | Time limit exceeded. | 0 |
| 16 | Depăşit | 1368kb | Time limit exceeded. | 0 |
| 17 | Depăşit | 1368kb | Time limit exceeded. | 0 |
| 18 | Depăşit | 1368kb | Time limit exceeded. | 0 |
| 19 | 0ms | 1324kb | OK | 5 |
| 20 | Depăşit | 3504kb | Time limit exceeded. | 0 |
| Punctaj total | 20 |