Borderou de evaluare (job #582082)

Utilizator avatar SerbaP123 Popescu Serban SerbaP123 IP ascuns
Problemă Prime (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 feb. 2021 12:21:21 Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:69:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 69 | printf("%d\n", i); | ~^ ~ | | | | int long long int | %lld main.cpp:76:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 76 | printf("%d", suma); | ~^ ~~~~ | | | | int long long int | %lld main.cpp: In function 'void read(long long int&)': main.cpp:18:31: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 18 | if(++poz == DIM) fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:22:31: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 22 | if(++poz == DIM) fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:64:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 64 | freopen("prime.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:65:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 65 | freopen("prime.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb Incorect 0
2 1 ms 262 kb OK 10
3 1 ms 262 kb OK 10
4 1 ms 262 kb Incorect 0
5 1 ms 262 kb OK 10
6 1 ms 262 kb Incorect 0
7 1 ms 262 kb OK 10
8 47 ms 520 kb OK 10
9 206 ms 520 kb Time limit exceeded 0
10 206 ms 520 kb Time limit exceeded 0
Punctaj total 50