Borderou de evaluare (job #1543901)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 6 decembrie 2015 12:02:30
Problema Infinite Pattern Matching Status done
Runda Algoritmiada 2016 - Runda 1, Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:28:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; bDec >= 2 * i; i *= 2); bDec ^= i; ^ user.cpp: In function ‘long long unsigned int nrBits(long long unsigned int)’: user.cpp:4:14: error: expected primary-expression before ‘unsigned’ #define ull unsigned long long ^ user.cpp:53:8: note: in expansion of macro ‘ull’ if ((ull(1) << nr) - 1 <= n) ^ user.cpp:4:14: error: expected ‘)’ before ‘unsigned’ #define ull unsigned long long ^ user.cpp:53:8: note: in expansion of macro ‘ull’ if ((ull(1) << nr) - 1 <= n) ^ user.cpp:54:36: error: expected ‘)’ before ‘;’ token rez += (ull(1) << (nr - 1)) * nr; ^ user.cpp:4:14: error: expected primary-expression before ‘unsigned’ #define ull unsigned long long ^ user.cpp:55:27: note: in expansion of macro ‘ull’ else return rez + (n - (ull(1) << (nr - 1)) + 1) * nr; ^ user.cpp:4:14: error: expected ‘)’ before ‘unsigned’ #define ull unsigned long long ^ user.cpp:55:27: note: in expansion of macro ‘ull’ else return rez + (n - (ull(1) << (nr - 1)) + 1) * nr; ^ user.cpp:55:56: error: expected ‘)’ before ‘;’ token else return rez + (n - (ull(1) << (nr - 1)) + 1) * nr; ^ user.cpp: In function ‘long long unsigned int getSol(int, int)’: user.cpp:96:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; rez >= 2 * i; i *= 2); rez ^= i; ^

Ceva nu functioneaza?