Borderou de evaluare (job #856563)

Utilizator avatar teorusu18 Teodor Rusu teorusu18 IP ascuns
Problemă Startrek (clasa a 7-a) Compilator cpp
Rundă lasm_05_03_2026_cl10_12 Status evaluat
Dată 5 mar. 2026 19:41:21 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:33:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | freopen("startrek.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:34:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 34 | freopen("startrek.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 37 | scanf("%d %d", &n, &t); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:40:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 40 | for (int i = 0; i < n; i++) scanf("%d", &p[i].d); | ~~~~~^~~~~~~~~~~~~~~ main.cpp:41:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 41 | for (int i = 0; i < n; i++) scanf("%d", &p[i].v); | ~~~~~^~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 292 kb OK 10
2 0 ms 292 kb OK 10
3 0 ms 508 kb OK 10
4 1 ms 292 kb OK 10
5 1 ms 292 kb OK 10
6 1 ms 292 kb OK 10
7 1 ms 508 kb OK 10
8 2 ms 292 kb OK 10
9 2 ms 292 kb OK 10
10 0 ms 508 kb OK 10
Punctaj total 100