Borderou de evaluare (job #1527724)

Utilizator binicBinica Nicolae binic Data 18 noiembrie 2015 17:40:17
Problema Linii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:1: error: declaration does not declare anything [-fpermissive] int ; ^ user.cpp: In function ‘int main()’: user.cpp:20:18: error: expected primary-expression before ‘%’ token scanf ("%d", %n); ^ user.cpp:20:19: error: ‘n’ was not declared in this scope scanf ("%d", %n); ^ user.cpp:21:10: error: ‘i’ was not declared in this scope for (i=1; i<=n; i++) ^ user.cpp:23:26: error: ‘x’ was not declared in this scope scanf ("%d %d", &x, &y); ^ user.cpp:23:30: error: ‘y’ was not declared in this scope scanf ("%d %d", &x, &y); ^ user.cpp:28:26: error: ‘sort’ was not declared in this scope sort (a+1, a+n+1, cmp); ^ user.cpp:29:5: error: ‘k’ was not declared in this scope k = 1; ^ user.cpp:30:5: error: ‘b’ was not declared in this scope b[1] = 1; ^ user.cpp:36:13: error: ‘m’ was not declared in this scope m = (ls + ld) / 2; ^ user.cpp:18:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("linii.in", "r", stdin); ^ user.cpp:19:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("linii.out", "w", stdout); ^

Ceva nu functioneaza?