Borderou de evaluare (job #3177577)

Utilizator Alex283810Mocan Alexandru Valnetin Alex283810 Data 29 noiembrie 2023 15:24:25
Problema Permutari II 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:23:24: error: invalid use of incomplete type 'std::ifstream' {aka 'class std::basic_ifstream<char>'} 23 | ifstream("perm2.in"); | ^ In file included from /usr/include/c++/12.2.1/ios:38, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/iosfwd:116:11: note: declaration of 'std::ifstream' {aka 'class std::basic_ifstream<char>'} 116 | class basic_ifstream; | ^~~~~~~~~~~~~~ main.cpp:24:25: error: invalid use of incomplete type 'std::ofstream' {aka 'class std::basic_ofstream<char>'} 24 | ofstream("perm2.out"); | ^ /usr/include/c++/12.2.1/iosfwd:119:11: note: declaration of 'std::ofstream' {aka 'class std::basic_ofstream<char>'} 119 | class basic_ofstream; | ^~~~~~~~~~~~~~ main.cpp:27:5: error: 'fin' was not declared in this scope 27 | fin>>n; | ^~~ main.cpp:42:25: error: invalid conversion from 'int (*)(int, int)' to 'int' [-fpermissive] 42 | m=m*cnt/cmmdc(m,cmmdc); | ^~~~~ | | | int (*)(int, int) main.cpp:8:21: note: initializing argument 2 of 'int cmmdc(int, int)' 8 | int cmmdc(int a,int b) | ~~~~^ main.cpp:46:5: error: 'fout' was not declared in this scope 46 | fout<<m; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?