Pagini recente » Borderou de evaluare (job #1314636) | Borderou de evaluare (job #2970264) | Borderou de evaluare (job #2783082) | Borderou de evaluare (job #183373) | Borderou de evaluare (job #1892880)
Borderou de evaluare (job #1892880)
Raport evaluator
Compilare:
user.cpp: In function ‘int find_centroid(int)’:
user.cpp:30:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < G[s].size(); i++)
^
user.cpp: In function ‘int compute_dist(int, int, int&, int)’:
user.cpp:56:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘std::pair<int, int> centroid_decomp(int)’:
user.cpp:68:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < G[c].size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ecotraseu.in", "r", stdin);
^
user.cpp:78:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ecotraseu.out", "w", stdout);
^
user.cpp:79:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &t);
^
user.cpp:84:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &n);
^
user.cpp:87:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i%i", &x, &y, &z);
^
user.cpp: In function ‘int find_centroid(int)’:
user.cpp:38:17: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
w[x] += w[s];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1204ms | 15552kb | Raspuns gresit, nodul x nu este frunza. Reveniti! :) | 0 |
Punctaj total | 0 |