Borderou de evaluare (job #1666068)

Utilizator remus.ionitaIonita Remus remus.ionita Data 27 martie 2016 17:08:09
Problema Palindroame Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void modify(int, int)’: user.cpp:18:30: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] for(; k < n; k += ~k & k + 1) { ^ user.cpp: In function ‘int query(int)’: user.cpp:25:32: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] for (; k >= 0; k -= ~k & k + 1) { ^ user.cpp: In function ‘int main()’: user.cpp:37:17: error: reference to ‘string’ is ambiguous scanf("%s", string); ^ user.cpp:11:6: note: candidates are: char string [1000001] char string[N + 1]; ^ In file included from /usr/include/c++/4.8/iosfwd:39:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stringfwd.h:62:33: note: typedef class std::basic_string<char> std::string typedef basic_string<char> string; ^ user.cpp:38:16: error: reference to ‘string’ is ambiguous n = strlen(string); ^ user.cpp:11:6: note: candidates are: char string [1000001] char string[N + 1]; ^ In file included from /usr/include/c++/4.8/iosfwd:39:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stringfwd.h:62:33: note: typedef class std::basic_string<char> std::string typedef basic_string<char> string; ^ user.cpp:40:23: error: reference to ‘string’ is ambiguous letters[(int)(string[i] -= 'A')].push_back(i); ^ user.cpp:11:6: note: candidates are: char string [1000001] char string[N + 1]; ^ In file included from /usr/include/c++/4.8/iosfwd:39:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stringfwd.h:62:33: note: typedef class std::basic_string<char> std::string typedef basic_string<char> string;

Ceva nu functioneaza?