Borderou de evaluare (job #1335404)
Utilizator | Data | 5 februarie 2015 14:46:02 | |
---|---|---|---|
Problema | Alge | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:1: error: expected initializer before ‘int’
int dx[] = {0, -1, 0, 0, 0, 0, 1, 0},
^
user.cpp:27:37: error: expected unqualified-id before ‘,’ token
int dx[] = {0, -1, 0, 0, 0, 0, 1, 0},
^
user.cpp:28:10: error: expected constructor, destructor, or type conversion before ‘=’ token
dy[] = {0, 0, 0, 1, 0, -1, 0, 0},
^
user.cpp:28:37: error: expected unqualified-id before ‘,’ token
dy[] = {0, 0, 0, 1, 0, -1, 0, 0},
^
user.cpp:29:10: error: expected constructor, destructor, or type conversion before ‘=’ token
dz[] = {0, 0, -1, 0, 1, 0, 0, 0};
^
user.cpp: In function ‘int main()’:
user.cpp:51:2: error: ‘dir’ was not declared in this scope
dir[1][1][1] = -1;
^
user.cpp:62:15: error: ‘dx’ was not declared in this scope
inew = i + dx[d];
^
user.cpp:63:15: error: ‘dy’ was not declared in this scope
jnew = j + dy[d];
^
user.cpp:64:15: error: ‘dz’ was not declared in this scope
knew = k + dz[d];
^
user.cpp:78:8: error: ‘dx’ was not declared in this scope
i -= dx[d];
^
user.cpp:79:8: error: ‘dy’ was not declared in this scope
j -= dy[d];
^
user.cpp:80:8: error: ‘dz’ was not declared in this scope
k -= dz[d];
^
user.cpp:39:24: warning: unused variable ‘len’ [-Wunused-variable]
int d, i, m, a, j, k, len, lat, inew, jnew, knew, x, y, z;
^
user.cpp:37:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alge.in", "r", stdin);
^
user.cpp:38:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alge.out", "w", stdout);
^
user.cpp:41:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:43:38: 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 !