Pagini recente » Borderou de evaluare (job #1136455) | Borderou de evaluare (job #3182748) | Borderou de evaluare (job #1439414) | Borderou de evaluare (job #3273334) | Borderou de evaluare (job #1862582)
Borderou de evaluare (job #1862582)
Raport evaluator
Compilare:
user.cpp: In function ‘int mp(int)’:
user.cpp:16:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 1; i < v.size() && v[i] < val; i++) {
^
user.cpp:10:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, sum = 0, crt;
^
user.cpp: In function ‘int main()’:
user.cpp:24:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.in", "r", stdin);
^
user.cpp:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.out", "w", stdout);
^
user.cpp:27:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &K);
^
user.cpp:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp: In function ‘int mp(int)’:
user.cpp:14:52: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
crt = upper_bound(v.begin(), v.end(), val - v[i]) - v.begin();
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 10 |
2 | 0ms | 272kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 4ms | 376kb | OK | 10 |
5 | 16ms | 392kb | OK | 10 |
6 | 24ms | 392kb | OK | 10 |
7 | 32ms | 528kb | OK | 10 |
8 | Depăşit | 572kb | Time limit exceeded. | 0 |
9 | Depăşit | 572kb | Time limit exceeded. | 0 |
10 | Depăşit | 568kb | Time limit exceeded. | 0 |
Punctaj total | 70 |