Pagini recente » Borderou de evaluare (job #421478) | Borderou de evaluare (job #2248597) | Borderou de evaluare (job #713799) | Borderou de evaluare (job #2317008) | Borderou de evaluare (job #2470600)
Borderou de evaluare (job #2470600)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:35:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
~~~~^~~~~
main.cpp:58:24: note: in expansion of macro 'MIN'
for(j = 0; j < MIN(v[i].size(), g / i); j++){
^~~
main.cpp:58:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < MIN(v[i].size(), g / i); j++){
^
main.cpp:65:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[0].size(); i++) maxx += v[0][i];
~~^~~~~~~~~~~~~
main.cpp:47:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ruksak.in","r",stdin);
^
main.cpp:48:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ruksak.out","w",stdout);
^
main.cpp:50:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &g);
^
main.cpp:52:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 327ms | 1966kb | OK | 10 | 100 |
2 | 343ms | 1966kb | OK | 10 |
3 | 302ms | 1966kb | OK | 10 |
4 | 325ms | 1966kb | OK | 10 |
5 | 179ms | 2478kb | OK | 10 |
6 | 281ms | 1966kb | OK | 10 |
7 | 311ms | 1966kb | OK | 10 |
8 | 305ms | 2097kb | OK | 10 |
9 | 312ms | 2097kb | OK | 10 |
10 | 152ms | 2478kb | OK | 10 |
Punctaj total | 100 |