Pagini recente » Borderou de evaluare (job #182137) | Borderou de evaluare (job #1319780) | Borderou de evaluare (job #466479) | Borderou de evaluare (job #828691) | Borderou de evaluare (job #1632562)
Borderou de evaluare (job #1632562)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:54:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxsubsum.in", "r", stdin);
^
user.cpp:55:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxsubsum.out", "w", stdout);
^
user.cpp:57:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:59:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
user.cpp:63:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
^
user.cpp: In function ‘std::pair<long long int, long long int> ssm(int*, int)’:
user.cpp:33:32: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return pair<ll, ll>(sol, f - s + 1);
^
user.cpp:33:32: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.cpp: In function ‘int main()’:
user.cpp:33:32: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.cpp:15:31: note: ‘s’ was declared here
long long sol = -INF; int s, f;
^
user.cpp:33:32: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return pair<ll, ll>(sol, f - s + 1);
^
user.cpp:15:34: note: ‘f’ was declared here
long long sol = -INF; int s, f;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 292kb | Incorect | 0 | 0 |
2 | 0ms | 292kb | Incorect | 0 |
3 | 0ms | 296kb | Incorect | 0 |
4 | 0ms | 296kb | Incorect | 0 |
5 | 0ms | 296kb | Incorect | 0 |
6 | 0ms | 292kb | Incorect | 0 |
7 | 0ms | 292kb | Incorect | 0 |
8 | 0ms | 296kb | Incorect | 0 |
9 | 0ms | 292kb | Incorect | 0 |
10 | 0ms | 292kb | Incorect | 0 |
Punctaj total | 0 |