Borderou de evaluare (job #639757)

Utilizator avatar lucametehau Metehau Luca Mihnea lucametehau IP ascuns
Problemă Alimentară Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 10 mar. 2022 12:30:27 Scor 40

Raport evaluator

Compilare: main.cpp: In function 'void getFact(int, int)': main.cpp:83:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 83 | for(int j = 0; j < primes.size() && primes[j] * primes[j] <= x; j++) { | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:133:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 133 | for(int i = 0; i < primes.size() && primes[i] * primes[i] <= a; i++) { | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'char nxt()': main.cpp:27:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fread(buff, 1, DIM, stdin); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:109:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 109 | freopen("alimentara.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:110:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 110 | freopen("alimentara.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 33 ms 8105 kb OK 10
2 31 ms 8241 kb OK 10
3 844 ms 16379 kb OK 10
4 842 ms 16007 kb OK 10
5 1108 ms 24014 kb Time limit exceeded 0
6 1108 ms 25321 kb Time limit exceeded 0
7 1107 ms 29741 kb Time limit exceeded 0
8 1101 ms 31051 kb Time limit exceeded 0
9 1104 ms 29863 kb Time limit exceeded 0
10 1116 ms 30392 kb Time limit exceeded 0
Punctaj total 40