Borderou de evaluare (job #1490005)
Utilizator | Data | 22 septembrie 2015 16:50:22 | |
---|---|---|---|
Problema | Sortnet | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: declaration does not declare anything [-fpermissive]
int ;
^
user.cpp: In function ‘bool sorted(int)’:
user.cpp:14:17: error: ‘N’ was not declared in this scope
val ^= ((1<<N) - 1), val ++;
^
user.cpp: In function ‘int unde(int, int)’:
user.cpp:25:22: error: ‘M’ was not declared in this scope
for (int i=1; i<=M; i++)
^
user.cpp:27:9: error: ‘V’ was not declared in this scope
V[i][X] = val;
^
user.cpp:28:17: error: ‘per’ was not declared in this scope
int Y = per[i][X];
^
user.cpp:29:13: error: ‘v’ was not declared in this scope
if (v[i][Y] && X > Y) X = Y;
^
user.cpp:31:20: error: ‘y’ was not declared in this scope
if ((!v[i][y]) && )
^
user.cpp:31:27: error: expected primary-expression before ‘)’ token
if ((!v[i][y]) && )
^
user.cpp:32:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:32:5: error: expected ‘;’ before ‘}’ token
user.cpp:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:40:18: error: ‘N’ was not declared in this scope
scanf ("%d %d", &N, &M);
^
user.cpp:40:22: error: ‘M’ was not declared in this scope
scanf ("%d %d", &N, &M);
^
user.cpp:47:9: error: ‘per’ was not declared in this scope
per[i][B] = A, per[i][A] = B;
^
user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("sortnet.in", "r", stdin);
^
user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("sortnet.out", "w", stdout);
^
user.cpp:46:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !