Borderou de evaluare (job #1462425)
Utilizator | Data | 18 iulie 2015 00:29:18 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:61: error: expected initializer before ‘val’
int N, M, K, X, Y, D[DIM+50000], St[DIM], T[DIM], Tata[DIM] val, pos, dep;
^
user.cpp: In function ‘void DFS(int)’:
user.cpp:16:13: error: ‘Tata’ was not declared in this scope
T[nod] = T[Tata[nod]] + 1;
^
user.cpp:17:5: error: ‘dep’ was not declared in this scope
St[dep] = nod;
^
user.cpp:20:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < Q[nod].size(); i += 2){
^
user.cpp:22:3: error: ‘val’ was not declared in this scope
val = Q[nod][i+0];
^
user.cpp:23:3: error: ‘pos’ was not declared in this scope
pos = Q[nod][i+1];
^
user.cpp:31:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < V[nod].size(); i ++){
^
user.cpp: In function ‘int main()’:
user.cpp:51:3: error: ‘Tata’ was not declared in this scope
Tata[i] = X;
^
user.cpp:42:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.in" ,"r", stdin );
^
user.cpp:43:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.out","w", stdout);
^
user.cpp:45:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:49:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &X);
^
user.cpp:56:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &X, &Y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !