Borderou de evaluare (job #3360020)
| Utilizator | Data | 7 iulie 2026 18:12:27 | |
|---|---|---|---|
| Problema | Pali | 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:11:14: error: invalid conversion from 'char*' to 'std::basic_istream<char>::char_type' {aka 'char'} [-fpermissive]
11 | fin.get(s+1);
| ~^~
| |
| char*
In file included from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/istream:316:22: note: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(char_type&) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char]'
316 | get(char_type& __c);
| ~~~~~~~~~~~^~~
main.cpp:11:14: error: cannot bind rvalue '(std::basic_istream<char>::char_type)(((char*)(& s)) + 1)' to 'std::basic_istream<char>::char_type&' {aka 'char&'}
11 | fin.get(s+1);
| ~^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
