Borderou de evaluare (job #1463428)
Utilizator | Data | 20 iulie 2015 22:05:46 | |
---|---|---|---|
Problema | Curatenie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:27:12: error: ‘nmax’ was not declared in this scope
int gr[nmax];
^
user.cpp:31:9: error: ‘gr’ was not declared in this scope
gr[aux] = i;
^
user.cpp:37:12: error: ‘v’ was not declared in this scope
cin >> v[1];
^
user.cpp:40:13: error: ‘st’ was not declared in this scope
if (st[v[i - 1]] == 0 && gr[v[i]] < gr[v[i - 1]]) {
^
user.cpp:40:34: error: ‘gr’ was not declared in this scope
if (st[v[i - 1]] == 0 && gr[v[i]] < gr[v[i - 1]]) {
^
user.cpp:45:21: error: ‘dr’ was not declared in this scope
if (dr[v[j]] == 0 && gr[v[i]] > gr[v[j]] && gr[v[j]] > ma) {
^
user.cpp:50:13: error: ‘dr’ was not declared in this scope
dr[v[ans]] = v[i];
^
user.cpp:54:17: error: ‘st’ was not declared in this scope
cout << st[i] << " " << dr[i] << "\n";
^
user.cpp:54:33: error: ‘dr’ was not declared in this scope
cout << st[i] << " " << dr[i] << "\n";
^
user.cpp:18:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("curatenie.in", "r", stdin);
^
user.cpp:19:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("curatenie.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !