Borderou de evaluare (job #1159219)
Utilizator | Data | 29 martie 2014 13:48:27 | |
---|---|---|---|
Problema | Zone 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:17: error: ‘N’ was not declared in this scope
Vertex vertexes[N*N+1];
^
user.cpp:19:19: error: ‘N’ was not declared in this scope
Vertex vertexes[N*N+1];
^
user.cpp: In function ‘void read()’:
user.cpp:29:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d",scanner);
^
user.cpp: In function ‘void verify(int, int)’:
user.cpp:80:49: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a[l+LIN[i]][c+COL[i]].val=a[l][c].val){
^
user.cpp:89:17: error: ‘vertexes’ was not declared in this scope
vertexes[graph[a[l][c].zone]].push_back(Vertex(a[l+LIN[i]][c+COL[i]].zone),a[l+LIN[i]][c+COL[i]].dim);
^
user.cpp:89:90: error: no matching function for call to ‘Vertex::Vertex(int&)’
vertexes[graph[a[l][c].zone]].push_back(Vertex(a[l+LIN[i]][c+COL[i]].zone),a[l+LIN[i]][c+COL[i]].dim);
^
user.cpp:89:90: note: candidates are:
user.cpp:11:5: note: Vertex::Vertex(int, int)
Vertex(int val,int sum){
^
user.cpp:11:5: note: candidate expects 2 arguments, 1 provided
user.cpp:8:8: note: constexpr Vertex::Vertex(const Vertex&)
struct Vertex{
^
user.cpp:8:8: note: no known conversion for argument 1 from ‘int’ to ‘const Vertex&’
user.cpp:8:8: note: constexpr Vertex::Vertex(Vertex&&)
user.cpp:8:8: note: no known conversion for argument 1 from ‘int’ to ‘Vertex&&’
user.cpp:90:31: error: no match for ‘operator[]’ (operand types are ‘std::vector<int> [90001]’ and ‘Cool’)
vertexes[graph[a[l+LIN[i]][c+COL[i]]].zone].push_back(Vertex(a[l][c].zone),a[l][c].dim);
^
user.cpp:90:90: error: no matching function for call to ‘Vertex::Vertex(int&)’
vertexes[graph[a[l+LIN[i]][c+COL[i]]].zone].push_back(Vertex(a[l][c].zone),a[l][c].dim);
^
user.cpp:90:90: note: candidates are:
user.cpp:11:5: note: Vertex::Vertex(int, int)
Vertex(int val,int sum){
^
user.cpp:11:5: note: candidate expects 2 arguments, 1 provided
user.cpp:8:8: note: constexpr Vertex::Vertex(const Vertex&)
struct Vertex{
^
user.cpp:8:8: note: no known conversion for argument 1 from ‘int’ to ‘const Vertex&’
user.cpp:8:8: note: constexpr Vertex::Vertex(Vertex&&)
user.cpp:8:8: note: no known conversion for argument 1 from ‘int’ to ‘Vertex&&’
user.cpp: In function ‘void setGraph()’:
user.cpp:96:13: error: ‘j’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !