Borderou de evaluare (job #2349652)
Utilizator | T E S L A P E F E L I E Elektryk | Data | 20 februarie 2019 17:04:46 |
---|---|---|---|
Problema | Cifre 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:5: error: 'in' was not declared in this scope
in>>p>>sir;
^~
main.cpp:18:9: error: 'p' was not declared in this scope
in>>p>>sir;
^
main.cpp:18:12: error: 'sir' was not declared in this scope
in>>p>>sir;
^~~
main.cpp:19:5: error: 'len' was not declared in this scope
len=strlen(sir);
^~~
main.cpp:23:13: error: 'sum' was not declared in this scope
sum+=printing[sir[i]-'0'];
^~~
main.cpp:24:9: error: 'out' was not declared in this scope
out<<sum;
^~~
main.cpp:24:14: error: 'sum' was not declared in this scope
out<<sum;
^~~
main.cpp:27:12: error: reference to 'next' is ambiguous
pos[0]=next[sir[0]-'0'];
^~~~
main.cpp:10:5: note: candidates are: int next [10]
int next[]= {2,6,2,3,3,4,2,3,1,1};
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
main.cpp:30:25: error: reference to 'next' is ambiguous
pos[i]=pos[i-1]*next[sir[i]-'0'];
^~~~
main.cpp:10:5: note: candidates are: int next [10]
int next[]= {2,6,2,3,3,4,2,3,1,1};
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !