Borderou de evaluare (job #786783)

Utilizator avatar danihere Daniel Dubrovschi danihere IP ascuns
Problemă Antiterra (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 sept. 2024 21:37:58 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream f("adunare.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream p("adunare.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:5: error: 'f' was not declared in this scope 8 | f >> value; | ^ main.cpp:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 12 | while (index < value.size()) { | ~~~~~~^~~~~~~~~~~~~~ main.cpp:14:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 14 | while (index < value.size() && isdigit(value[index])) { | ~~~~~~^~~~~~~~~~~~~~ main.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 20 | if (index < value.size()) { | ~~~~~~^~~~~~~~~~~~~~ main.cpp:30:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 30 | while (index < value.size() && value[index] == ' ') { | ~~~~~~^~~~~~~~~~~~~~ main.cpp:35:5: error: 'p' was not declared in this scope 35 | p << sum; | ^