Borderou de evaluare (job #794414)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Scara | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 nov. 2024 10:42:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:9: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
21 | ifstream fin("scara.in"); ofstream fout("scara.out");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/localefwd.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:45,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:52,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:52,
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:21:35: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
21 | ifstream fin("scara.in"); ofstream fout("scara.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:22:9: error: 'fin' was not declared in this scope; did you mean 'sin'?
22 | fin>>n>>k;
| ^~~
| sin
main.cpp:23:9: error: 'fout' was not declared in this scope
23 | fout<<combo(n,k);
| ^~~~
main.cpp:23:15: error: 'combo' was not declared in this scope
23 | fout<<combo(n,k);
| ^~~~~