Borderou de evaluare (job #1849124)

Utilizator mega_bit8Badita Robert mega_bit8 Data 17 ianuarie 2017 00:39:54
Problema Sokoban Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool lee(int, int, int, int, int)’: user.cpp:8:16: error: expected primary-expression before ‘?’ token #define abs(a) ? (((a) < 0) ? -(a) : (a)) ^ user.cpp:39:48: note: in expansion of macro ‘abs’ pq.push(((long long)(sl * 2048 + sc) << 32) + abs(sl - el) + abs(sc - ec)); ^ user.cpp:8:16: error: expected primary-expression before ‘?’ token #define abs(a) ? (((a) < 0) ? -(a) : (a)) ^ user.cpp:39:63: note: in expansion of macro ‘abs’ pq.push(((long long)(sl * 2048 + sc) << 32) + abs(sl - el) + abs(sc - ec)); ^ user.cpp:39:75: error: expected ‘:’ before ‘)’ token pq.push(((long long)(sl * 2048 + sc) << 32) + abs(sl - el) + abs(sc - ec)); ^ user.cpp:39:75: error: expected primary-expression before ‘)’ token user.cpp:39:75: error: expected ‘:’ before ‘)’ token user.cpp:39:75: error: expected primary-expression before ‘)’ token user.cpp:8:16: error: expected primary-expression before ‘?’ token #define abs(a) ? (((a) < 0) ? -(a) : (a)) ^ user.cpp:57:51: note: in expansion of macro ‘abs’ pq.push(((long long)(nl * 2048 + nc) << 32) + abs(nl - el) + abs(nc - ec)); ^ user.cpp:8:16: error: expected primary-expression before ‘?’ token #define abs(a) ? (((a) < 0) ? -(a) : (a)) ^ user.cpp:57:66: note: in expansion of macro ‘abs’ pq.push(((long long)(nl * 2048 + nc) << 32) + abs(nl - el) + abs(nc - ec)); ^ user.cpp:57:78: error: expected ‘:’ before ‘)’ token pq.push(((long long)(nl * 2048 + nc) << 32) + abs(nl - el) + abs(nc - ec)); ^ user.cpp:57:78: error: expected primary-expression before ‘)’ token user.cpp:57:78: error: expected ‘:’ before ‘)’ token user.cpp:57:78: error: expected primary-expression before ‘)’ token user.cpp: In function ‘int main()’: user.cpp:69:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d\n", &t); ^ user.cpp:73:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d\n", &n, &m); ^ user.cpp:77:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s\n", &s[0]); ^

Ceva nu functioneaza?