Borderou de evaluare (job #639755)

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:27:07 Scor 30

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:135:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 135 | 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:111:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 111 | freopen("alimentara.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:112:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 112 | freopen("alimentara.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 33 ms 8110 kb OK 10
2 34 ms 8245 kb OK 10
3 1100 ms 19791 kb Time limit exceeded 0
4 973 ms 17174 kb OK 10
5 1105 ms 26447 kb Time limit exceeded 0
6 1108 ms 31571 kb Time limit exceeded 0
7 1103 ms 31444 kb Time limit exceeded 0
8 1094 ms 32882 kb Memory limit exceeded 0
9 1102 ms 31313 kb Time limit exceeded 0
10 1104 ms 30658 kb Time limit exceeded 0
Punctaj total 30