Borderou de evaluare (job #1173739)
Utilizator | Data | 20 aprilie 2014 20:03:32 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:13: warning: ISO C99 requires whitespace after the macro name [enabled by default]
#define word[index] - 'a' CH
^
user.cpp:6:14: error: ‘index’ was not declared in this scope
#define word[index] - 'a' CH
^
user.cpp:24:21: note: in expansion of macro ‘word’
void addWord(string word){
^
user.cpp:6:21: error: expected ‘,’ or ‘...’ before ‘-’ token
#define word[index] - 'a' CH
^
user.cpp:24:21: note: in expansion of macro ‘word’
void addWord(string word){
^
user.cpp: In lambda function:
user.cpp:6:21: error: expected ‘{’ before ‘-’ token
#define word[index] - 'a' CH
^
user.cpp:25:26: note: in expansion of macro ‘word’
int index = 0, len = word.size();
^
user.cpp: In function ‘void addWord()’:
user.cpp:6:21: error: no match for ‘operator-’ (operand types are ‘addWord()::__lambda0’ and ‘char’)
#define word[index] - 'a' CH
^
user.cpp:25:26: note: in expansion of macro ‘word’
int index = 0, len = word.size();
^
user.cpp:6:21: note: candidates are:
#define word[index] - 'a' CH
^
user.cpp:25:26: note: in expansion of macro ‘word’
int index = 0, len = word.size();
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0,
from /usr/local/include/c++/4.8.0/bits/char_traits.h:39,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:327:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator-(const reverse_iterator<_Iterator>& __x,
^
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:327:5: note: template argument deduction/substitution failed:
user.cpp:6:23: note: ‘addWord()::__lambda0’ is not derived from ‘const std::reverse_iterator<_Iterator>’
#define word[index] - 'a' CH
^
user.cpp:25:26: note: in expansion of macro ‘word’
int index = 0, len = word.size();
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !