Borderou de evaluare (job #757012)

Utilizator avatar StoicaTea Stoica Teodora StoicaTea IP ascuns
Problemă Tunel (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 ian. 2024 18:13:42 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:21:21: warning: unused variable 'fcsb' [-Wunused-variable] 21 | int fcsb = 0; | ^~~~ main.cpp:23:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 23 | if(i + pas < tunnels[col].size() && tunnels[col][i + pas] <= lin) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:48:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 48 | if(i + pas < tunnels[col].size() && tunnels[col][i + pas] <= lin) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:71:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 71 | if(i + pas < tunnels[col].size() && tunnels[col][i + pas] <= lin) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:6:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 6 | freopen("tunel.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("tunel.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | scanf("%d%d%d%d", &c, &n, &m, &l); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | scanf("%d", &p); | ~~~~~^~~~~~~~~~ main.cpp:12:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | scanf("%d", &x); | ~~~~~^~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 503 kb OK 4
2 1 ms 499 kb OK 4
3 2 ms 499 kb OK 4
4 1 ms 503 kb OK 4
5 1 ms 507 kb OK 4
6 1 ms 512 kb OK 4
7 9 ms 503 kb OK 4
8 49 ms 1032 kb OK 4
9 2 ms 507 kb OK 4
10 1 ms 503 kb OK 4
11 22 ms 765 kb OK 4
12 1 ms 503 kb OK 4
13 49 ms 1036 kb OK 4
14 1 ms 503 kb OK 4
15 1 ms 503 kb OK 4
16 76 ms 1290 kb OK 4
17 17 ms 503 kb OK 4
18 19 ms 774 kb OK 4
19 19 ms 770 kb OK 4
20 1 ms 503 kb OK 4
21 2 ms 503 kb OK 4
22 9 ms 770 kb OK 4
23 9 ms 503 kb OK 4
24 1 ms 507 kb OK 4
25 9 ms 503 kb OK 4
Punctaj total 100