Borderou de evaluare (job #732371)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Control Node | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 16 sept. 2023 16:51:16 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:85:13: warning: unused variable 'nr' [-Wunused-variable]
85 | int nr, i;
| ^~
main.cpp:85:17: warning: unused variable 'i' [-Wunused-variable]
85 | int nr, i;
| ^
main.cpp:107:26: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
107 | for(int i = 1; i <= cnt_sol; i++){
| ~~^~~~~~~~~~
main.cpp:137:27: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
137 | for (int i = 1; i <= cnt_sol;) { /// serverele din acceasi retea sunt sortate unele langa altele
| ~~^~~~~~~~~~
main.cpp:139:22: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
139 | while (j <= cnt_sol && sol_networks[i] == sol_networks[j])
| ~~^~~~~~~~~~
main.cpp:136:13: warning: unused variable 'sol' [-Wunused-variable]
136 | int sol = 0, no_groups = 0;
| ^~~
main.cpp:77:9: warning: variable 'n' set but not used [-Wunused-but-set-variable]
77 | int n, c, maxhead = 0;
| ^
main.cpp:77:15: warning: unused variable 'maxhead' [-Wunused-variable]
77 | int n, c, maxhead = 0;
| ^~~~~~~
main.cpp:78:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | freopen("controlnode.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:79:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | freopen("controlnode.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:80:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | scanf("%d\n", &c);
| ~~~~~^~~~~~~~~~~~
main.cpp:81:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
81 | scanf("%s", s);
| ~~~~~^~~~~~~~~
main.cpp:102:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
102 | scanf("%s", s);
| ~~~~~^~~~~~~~~