Borderou de evaluare (job #584342)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Permfix | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 mar. 2021 20:20:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:45:10: error: redefinition of 'std::ifstream in'
45 | ifstream in("permfix.in");
| ^~
main.cpp:5:10: note: 'std::ifstream in' previously declared here
5 | ifstream in("permfix.in");
| ^~
main.cpp:46:10: error: redefinition of 'std::ofstream out'
46 | ofstream out("permfix.out");
| ^~~
main.cpp:6:10: note: 'std::ofstream out' previously declared here
6 | ofstream out("permfix.out");
| ^~~
main.cpp:49:5: error: redefinition of 'int n'
49 | int n;
| ^
main.cpp:9:5: note: 'int n' previously declared here
9 | int n;
| ^
main.cpp:50:5: error: redefinition of 'int a [10]'
50 | int a[10];
| ^
main.cpp:10:5: note: 'int a [10]' previously declared here
10 | int a[10];
| ^
main.cpp:51:6: error: redefinition of 'bool s [10]'
51 | bool s[10];
| ^
main.cpp:11:6: note: 'bool s [10]' previously declared here
11 | bool s[10];
| ^
main.cpp:52:6: error: redefinition of 'void afisare(int)'
52 | void afisare(int k){
| ^~~~~~~
main.cpp:12:6: note: 'void afisare(int)' previously defined here
12 | void afisare(int k){
| ^~~~~~~
main.cpp:59:6: error: redefinition of 'void back(int)'
59 | void back(int k){
| ^~~~
main.cpp:19:6: note: 'void back(int)' previously defined here
19 | void back(int k){
| ^~~~
main.cpp:75:5: error: redefinition of 'int main()'
75 | int main(){
| ^~~~
main.cpp:35:5: note: 'int main()' previously defined here
35 | int main(){
| ^~~~