Borderou de evaluare (job #3365596)
| Utilizator | Data | 22 septembrie 2026 17:57:40 | |
|---|---|---|---|
| Problema | Cifra | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:3:7: error: expected nested-name-specifier before 'namespacde'
3 | using namespacde std;
| ^~~~~~~~~~
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream fin("cifra.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream fout("cifra.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'fin' was not declared in this scope
10 | fin >> T;
| ^~~
main.cpp:13:9: error: 'string' was not declared in this scope
13 | string N;
| ^~~~~~
main.cpp:13:9: note: suggested alternatives:
In file included from /usr/include/c++/12.2.1/iosfwd:39,
from /usr/include/c++/12.2.1/ios:38,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42:
/usr/include/c++/12.2.1/string:65:11: note: 'std::pmr::string'
65 | using string = basic_string<char>;
| ^~~~~~
main.cpp:14:16: error: 'N' was not declared in this scope
14 | fin >> N;
| ^
main.cpp:41:9: error: 'fout' was not declared in this scope
41 | fout << suma << "\n";
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
