Borderou de evaluare (job #781701)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Extraprime (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 iul. 2024 11:55:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
8 | ifstream fin("extraprime.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ios:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:41,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iosfwd:164:41: note: 'std::ifstream' declared here
164 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:9:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
9 | ofstream fout("extraprime.out");
| ^~~~~~~~
| std::ofstream
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iosfwd:167:41: note: 'std::ofstream' declared here
167 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:13:5: error: 'fin' was not declared in this scope; did you mean 'min'?
13 | fin>>a>>b;
| ^~~
| min
main.cpp:21:18: error: expected ';' before 'while'
21 | x=i*i
| ^
| ;
22 | while(x<=b){
| ~~~~~
main.cpp:77:5: error: 'fout' was not declared in this scope
77 | fout<<cnt<<endl<<min<<endl<<max;
| ^~~~
main.cpp:77:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
77 | fout<<cnt<<endl<<min<<endl<<max;
| ^~~~
| std::endl
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~