Borderou de evaluare (job #2169287)
Utilizator | Richiteanu Mihai Sebastian sebastiannrx | Data | 14 martie 2018 14:36:07 |
---|---|---|---|
Problema | Delfin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:6: error: conflicting declaration ‘char c’
char c;
^
user.cpp:8:22: note: previous declaration as ‘pct c [1010025]’
struct pct {int x,y;}c[nn*nn];
^
user.cpp: In function ‘void read()’:
user.cpp:15:20: error: invalid conversion from ‘pct*’ to ‘std::basic_istream<char>::char_type {aka char}’ [-fpermissive]
f.get(c);
^
In file included from /usr/include/c++/5/fstream:38:0,
from user.cpp:1:
/usr/include/c++/5/istream:316:7: note: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::char_type = char]’
get(char_type& __c);
^
user.cpp:15:20: error: cannot bind rvalue ‘(std::basic_istream<char>::char_type)((int)(& c))’ to ‘std::basic_istream<char>::char_type& {aka char&}’
f.get(c);
^
user.cpp:16:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (c=='1')
^
user.cpp:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if (c=='S') {
^
user.cpp:22:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if (c=='F') {
^
user.cpp:26:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if (c=='D') {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !