Borderou de evaluare (job #2769239)
Utilizator | Data | 14 august 2021 12:21:10 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'string' does not name a type
string __fname = "adunare"; ifstream in (__fname + ".in"); ofstream out (__fname + ".out");
^~~~~~
main.cpp:2:29: error: 'ifstream' does not name a type
string __fname = "adunare"; ifstream in (__fname + ".in"); ofstream out (__fname + ".out");
^~~~~~~~
main.cpp:2:60: error: 'ofstream' does not name a type
string __fname = "adunare"; ifstream in (__fname + ".in"); ofstream out (__fname + ".out");
^~~~~~~~
main.cpp: In function 'std::vector<int> verification(std::__cxx11::string)':
main.cpp:9:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++){
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:3:13: error: 'in' was not declared in this scope
#define cin in
^
main.cpp:20:5: note: in expansion of macro 'cin'
cin >> a >> b;
^~~
main.cpp:4:14: error: 'out' was not declared in this scope
#define cout out
^
main.cpp:21:5: note: in expansion of macro 'cout'
cout << a + b;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !