Borderou de evaluare (job #944369)
Utilizator | Data | 28 aprilie 2013 12:07:25 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:16: error: size of array ‘a’ is too large
char a[DIM][DIM];
^
user.cpp:4:13: warning: integer overflow in expression [-Woverflow]
#define DIM 100010
^
user.cpp:7:11: note: in expansion of macro ‘DIM’
int c[DIM*DIM];
^
user.cpp:7:14: error: overflow in constant expression
int c[DIM*DIM];
^
user.cpp:7:14: error: overflow in array dimension
user.cpp:7:14: error: size of array ‘c’ is too large
user.cpp:4:13: warning: integer overflow in expression [-Woverflow]
#define DIM 100010
^
user.cpp:8:11: note: in expansion of macro ‘DIM’
int v[DIM*DIM];
^
user.cpp:8:14: error: overflow in constant expression
int v[DIM*DIM];
^
user.cpp:8:14: error: overflow in array dimension
user.cpp:8:14: error: size of array ‘v’ is too large
user.cpp: In function ‘int main()’:
user.cpp:18:9: error: ‘a’ was not declared in this scope
a[i][j] = 1;
^
user.cpp:21:5: error: ‘c’ was not declared in this scope
c[1] = s;
^
user.cpp:22:5: error: ‘v’ was not declared in this scope
v[s] = 1;
^
user.cpp:29:30: error: ‘a’ was not declared in this scope
if (v[i] == 0 && a[c[p]][i] == 1) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !