Borderou de evaluare (job #2821337)
Utilizator | Data | 22 decembrie 2021 13:57:17 | |
---|---|---|---|
Problema | CMMDC | 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:9:13: error: expected ';' before ')' token
9 | for(a!=b)
| ^
| ;
main.cpp:9:10: warning: statement has no effect [-Wunused-value]
9 | for(a!=b)
| ~^~~
main.cpp:12:5: error: expected primary-expression before 'else'
12 | else
| ^~~~
main.cpp:11:15: error: expected ';' before 'else'
11 | a=a-b;
| ^
| ;
12 | else
| ~~~~
main.cpp:12:5: error: expected primary-expression before 'else'
12 | else
| ^~~~
main.cpp:11:15: error: expected ')' before 'else'
11 | a=a-b;
| ^
| )
12 | else
| ~~~~
main.cpp:9:8: note: to match this '('
9 | for(a!=b)
| ^
main.cpp:12:5: error: expected primary-expression before 'else'
12 | else
| ^~~~
main.cpp:15:10: error: no match for 'operator<<' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
15 | f<<0;
| ~^~~
| | |
| | int
| std::ifstream {aka std::basic_ifstream<char>}
main.cpp:15:10: note: candidate: 'operator<<(int, int)' (built-in)
15 | f<<0;
| ~^~~
main.cpp:15:10: note: no known conversion for argument 1 from 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'int'
In file included from /usr/include/c++/10/string:55,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/basic_string.h:6468:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !