Borderou de evaluare (job #626883)

Utilizator avatar lorenaveres Veres Lorena lorenaveres IP ascuns
Problemă Minnrk (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 ian. 2022 10:44:19 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:17:17: error: variable 'std::ifstream fin' has initializer but incomplete type 17 | ifstream fin("maxnr.in"); | ^ main.cpp:20:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 20 | int main() | ^~ main.cpp:20:13: note: remove parentheses to default-initialize a variable 20 | int main() | ^~ | -- main.cpp:20:13: note: or replace parentheses with braces to value-initialize a variable main.cpp:21:5: error: a function-definition is not allowed here before '{' token 21 | { | ^ main.cpp:50:18: error: variable 'std::ofstream fout' has initializer but incomplete type 50 | ofstream fout("maxnr.out"); | ^ main.cpp:19:9: warning: unused variable 'v' [-Wunused-variable] 19 | int v[10]; | ^ main.cpp: At global scope: main.cpp:55:5: error: redefinition of 'int fr [10]' 55 | int fr[10]; | ^~ main.cpp:13:5: note: 'int fr [10]' previously declared here 13 | int fr[10]; | ^~ main.cpp:56:5: error: redefinition of 'int main()' 56 | int main() | ^~~~ main.cpp:14:5: note: 'int main()' previously defined here 14 | int main() | ^~~~ main.cpp: In function 'int main()': main.cpp:59:17: error: variable 'std::ifstream fin' has initializer but incomplete type 59 | ifstream fin("maxnr.in"); | ^ main.cpp:62:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 62 | int main() | ^~ main.cpp:62:13: note: remove parentheses to default-initialize a variable 62 | int main() | ^~ | -- main.cpp:62:13: note: or replace parentheses with braces to value-initialize a variable main.cpp:63:5: error: a function-definition is not allowed here before '{' token 63 | { | ^ main.cpp:92:18: error: variable 'std::ofstream fout' has initializer but incomplete type