Borderou de evaluare (job #2167507)

Utilizator andru47Stefanescu Andru andru47 Data 13 martie 2018 22:02:41
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void run_lee(std::pair<int, int>)’: user.cpp:51:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (!(x > 0 || y > 0 || x <= n && y <= m)) ^ user.cpp:57:26: error: ‘xx’ was not declared in this scope if (entrance[xx][yy] == true && first == 400000) ^ user.cpp:57:30: error: ‘yy’ was not declared in this scope if (entrance[xx][yy] == true && first == 400000) ^ user.cpp:58:45: error: could not convert ‘{xx, yy}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<int, int>’ first = transform_node({xx , yy}); ^ user.cpp: In function ‘int main()’: user.cpp:108:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cartite.in" , "r", stdin); ^ user.cpp:109:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cartite.out" , "w", stdout); ^ user.cpp:110:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &instr); ^ user.cpp:111:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:112:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &p.first, &p.second); ^ user.cpp:114:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:118:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &x, &y, &l); ^ user.cpp:128:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &muchii); ^ user.cpp:132:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &x, &y, &xx, &yy); ^

Ceva nu functioneaza?