Borderou de evaluare (job #2899352)
Utilizator | Data | 8 mai 2022 16:19:16 | |
---|---|---|---|
Problema | Biscuiti | 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:83:3: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
83 | ifstream f ("biscuiti.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:84:3: error: 'f' was not declared in this scope
84 | f >> n;
| ^
main.cpp:99:3: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
99 | ofstream g ("biscuiti.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:100:3: error: 'g' was not declared in this scope
100 | g << s2;
| ^
main.cpp:81:27: warning: unused variable 'j' [-Wunused-variable]
81 | long long s2 = 0, i, n, j, s1 = 0, poz;
| ^
main.cpp:81:30: warning: unused variable 's1' [-Wunused-variable]
81 | long long s2 = 0, i, n, j, s1 = 0, poz;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !