Borderou de evaluare (job #2191983)
Utilizator | Data | 4 aprilie 2018 12:22:29 | |
---|---|---|---|
Problema | Interclasare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cmlsc(std::vector<int>, int)’:
user.cpp:52:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<a.size(); i++){
~^~~~~~~~~
user.cpp: At global scope:
user.cpp:145:11: error: redefinition of ‘std::ifstream f’
ifstream f("interclasare.in");
^
user.cpp:9:10: note: ‘std::ifstream f’ previously declared here
ifstream f("interclasare.in");
^
user.cpp:146:11: error: redefinition of ‘std::ofstream g’
ofstream g("interclasare.out");
^
user.cpp:10:10: note: ‘std::ofstream g’ previously declared here
ofstream g("interclasare.out");
^
user.cpp:148:5: error: redefinition of ‘int n’
int n, m, r[20005], l1, l2;
^
user.cpp:12:5: note: ‘int n’ previously declared here
int n, m, r[20005], l1, l2;
^
user.cpp:148:8: error: redefinition of ‘int m’
int n, m, r[20005], l1, l2;
^
user.cpp:12:8: note: ‘int m’ previously declared here
int n, m, r[20005], l1, l2;
^
user.cpp:148:18: error: redefinition of ‘int r [20005]’
int n, m, r[20005], l1, l2;
^
user.cpp:12:11: note: ‘int r [20005]’ previously declared here
int n, m, r[20005], l1, l2;
^
user.cpp:148:21: error: redefinition of ‘int l1’
int n, m, r[20005], l1, l2;
^~
user.cpp:12:21: note: ‘int l1’ previously declared here
int n, m, r[20005], l1, l2;
^~
user.cpp:148:25: error: redefinition of ‘int l2’
int n, m, r[20005], l1, l2;
^~
user.cpp:12:25: note: ‘int l2’ previously declared here
int n, m, r[20005], l1, l2;
^~
user.cpp:150:13: error: redefinition of ‘std::vector<int> a’
vector<int> a, b;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !