Borderou de evaluare (job #1723154)
Utilizator | Data | 29 iunie 2016 20:35:47 | |
---|---|---|---|
Problema | Nivele2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:18: error: expected initializer before ‘N’
unsigned __int16 N, M, L, Start,j;
^
user.cpp:11:25: error: template argument 1 is invalid
vector <unsigned __int16> A[maxn];
^
user.cpp:11:25: error: template argument 2 is invalid
user.cpp:11:34: error: invalid type in declaration before ‘;’ token
vector <unsigned __int16> A[maxn];
^
user.cpp:12:18: error: expected initializer before ‘S’
unsigned __int16 S[maxn],Cost[maxn],nr;
^
user.cpp: In function ‘void BFS(int)’:
user.cpp:19:5: error: ‘L’ was not declared in this scope
L = 1;
^
user.cpp:20:5: error: ‘Cost’ was not declared in this scope
Cost[nod] = 1;
^
user.cpp:21:5: error: ‘S’ was not declared in this scope
S[L] = nod;
^
user.cpp: In function ‘int main()’:
user.cpp:37:10: error: ‘N’ was not declared in this scope
fin>>N;
^
user.cpp:43:14: error: request for member ‘push_back’ in ‘A[x]’, which is of non-class type ‘int’
A[x].push_back(y);
^
user.cpp:44:14: error: request for member ‘push_back’ in ‘A[y]’, which is of non-class type ‘int’
A[y].push_back(x);
^
user.cpp:52:14: error: ‘j’ was not declared in this scope
for (j=1; j<=N; j++)
^
user.cpp:53:13: error: ‘Cost’ was not declared in this scope
if (Cost[j]==i) { fout<<j<<" "; nr++;}
^
user.cpp:53:41: error: ‘nr’ was not declared in this scope
if (Cost[j]==i) { fout<<j<<" "; nr++;}
^
user.cpp:54:13: error: ‘nr’ was not declared in this scope
if (nr==N) break;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !