Pagini recente » Borderou de evaluare (job #781578) | Borderou de evaluare (job #3025801) | Borderou de evaluare (job #1869555) | Borderou de evaluare (job #1601359) | Borderou de evaluare (job #2446030)
Borderou de evaluare (job #2446030)
Raport evaluator
Compilare:
main.cpp: In instantiation of 'bool majorityElement<T>::findMajorityElement(T&, unsigned int&) [with T = int]':
main.cpp:51:46: required from here
main.cpp:32:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ap * 2 > elements.size()) res = true, ans = maj, nrAp = ap;
main.cpp: In function 'int main()':
main.cpp:40:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("elmaj.in","r",stdin);
^
main.cpp:41:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("elmaj.out","w",stdout);
^
main.cpp:42:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:46:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 3ms | 131kb | OK | 10 |
| 4 | 6ms | 262kb | OK | 10 |
| 5 | 21ms | 524kb | OK | 10 |
| 6 | 39ms | 782kb | OK | 10 |
| 7 | 75ms | 1302kb | OK | 10 |
| 8 | 153ms | 2347kb | OK | 10 |
| 9 | 314ms | 4440kb | OK | 10 |
| 10 | 321ms | 4440kb | OK | 10 |
| Punctaj total | 100 |