Borderou de evaluare (job #2615237)

Utilizator RazorBestPricop Razvan Marius RazorBest Data 13 mai 2020 21:42:39
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int toposort(std::vector<int>*, int, int*)': main.cpp:19:12: warning: unused variable 'j' [-Wunused-variable] int i, j, depth = 0, l = 0, length = 1, new_length = 0; ^ main.cpp:65:16: warning: unused variable 'pp' [-Wunused-variable] struct per pp; ^~ main.cpp:77:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:80:9: warning: unused variable 'i' [-Wunused-variable] int i, j, n, m, x, y; ^ main.cpp:80:12: warning: unused variable 'j' [-Wunused-variable] int i, j, n, m, x, y; ^ main.cpp:94:10: warning: unused variable 'ans' [-Wunused-variable] int *ans = (int*)malloc(100 * sizeof(int)); ^~~ main.cpp:84:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.in", "r", stdin); ^ main.cpp:85:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.out", "w", stdout); ^ main.cpp:87:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ main.cpp:89:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms1703kbRaspuns gresit0
25ms1703kbRaspuns gresit0
36ms1703kbRaspuns gresit0
47ms1703kbRaspuns gresit0
510ms1835kbRaspuns gresit0
615ms1966kbRaspuns gresit0
729ms2228kbRaspuns gresit0
840ms2490kbRaspuns gresit0
979ms3014kbRaspuns gresit0
10118ms3407kbRaspuns gresit0
Punctaj total0

Ceva nu functioneaza?