Borderou de evaluare (job #2327224)
Utilizator | Data | 24 ianuarie 2019 15:23:56 | |
---|---|---|---|
Problema | Generare de permutari | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp:2:1: error: 'ofstream' does not name a type
ofstream b("permutari.out");main(){int i,n,v[8]={1,2,3,4,5,6,7,8};std::ifstream("permutari.in")>>n;do{for(i=0;i<n;)b<<v[i++]<<' ';b<<'\n';}while(std::next_permutation(v,v+n));}
^~~~~~~~
main.cpp:2:34: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
ofstream b("permutari.out");main(){int i,n,v[8]={1,2,3,4,5,6,7,8};std::ifstream("permutari.in")>>n;do{for(i=0;i<n;)b<<v[i++]<<' ';b<<'\n';}while(std::next_permutation(v,v+n));}
^
main.cpp: In function 'int main()':
main.cpp:2:116: error: 'b' was not declared in this scope
ofstream b("permutari.out");main(){int i,n,v[8]={1,2,3,4,5,6,7,8};std::ifstream("permutari.in")>>n;do{for(i=0;i<n;)b<<v[i++]<<' ';b<<'\n';}while(std::next_permutation(v,v+n));}
^
main.cpp:2:131: error: 'b' was not declared in this scope
ofstream b("permutari.out");main(){int i,n,v[8]={1,2,3,4,5,6,7,8};std::ifstream("permutari.in")>>n;do{for(i=0;i<n;)b<<v[i++]<<' ';b<<'\n';}while(std::next_permutation(v,v+n));}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !