Borderou de evaluare (job #2274895)

Utilizator memecoinMeme Coin memecoin Data 2 noiembrie 2018 17:21:29
Problema Mesaj4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfsAquire(int, int)': main.cpp:39:7: warning: unused variable 'canVisit' [-Wunused-variable] bool canVisit = false; ^~~~~~~~ main.cpp: In function 'void dfsSpread(int, int)': main.cpp:52:7: warning: unused variable 'canVisit' [-Wunused-variable] bool canVisit = false; ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:82:24: error: 'memset' was not declared in this scope memset(v, 0, sizeof(v)); ^ main.cpp:87:41: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=] printf("%d\n", sol.size() + sol2.size()); ^ main.cpp:65:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj4.in", "r", stdin); ^ main.cpp:66:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj4.out", "w", stdout); ^ main.cpp:68:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ main.cpp:72:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &x, &y); ^ Non zero exit status: 1

Ceva nu functioneaza?