Borderou de evaluare (job #1897419)
Utilizator | Data | 1 martie 2017 13:26:46 | |
---|---|---|---|
Problema | Ajutor | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:31: error: invalid initialization of reference of type ‘std::pair<int, int>&’ from expression of type ‘int’
for( pair<int, int> &pt : pts ) {
^
user.cpp:31:5: error: ‘xle’ was not declared in this scope
xle[0] = 0;
^
user.cpp:32:5: error: ‘yle’ was not declared in this scope
yle[0] = 0;
^
user.cpp:39:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( j1 < lst1.size() && i == lst1[j1] )
^
user.cpp:41:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( j2 < lst2.size() && i == lst2[j2] )
^
user.cpp:45:5: error: ‘xri’ was not declared in this scope
xri[i] = lst1.size() + 1;
^
user.cpp:45:9: error: ‘i’ was not declared in this scope
xri[i] = lst1.size() + 1;
^
user.cpp:46:5: error: ‘yri’ was not declared in this scope
yri[i] = lst2.size() + 1;
^
user.cpp:59:13: error: ‘dp’ was not declared in this scope
memset( dp, 0x3f, sizeof(dp1) );
^
user.cpp:60:30: error: conversion from ‘int’ to non-scalar type ‘std::pair<int, int>’ requested
for( pair<int, int> pt : pts ) {
^
user.cpp:61:50: error: ‘x’ was not declared in this scope
dp1[0][xle[pt.first]][yle[pt.second]] = +x +y;
^
user.cpp:61:53: error: ‘y’ was not declared in this scope
dp1[0][xle[pt.first]][yle[pt.second]] = +x +y;
^
user.cpp:62:9: error: ‘dp2’ was not declared in this scope
dp2[0][xle[pt.first]][yri[pt.second]] = +x -y;
^
user.cpp:63:9: error: ‘dp3’ was not declared in this scope
dp3[0][xri[pt.first]][yle[pt.second]] = -x +y;
^
user.cpp:64:9: error: ‘dp4’ was not declared in this scope
dp4[0][xri[pt.first]][yri[pt.second]] = -x -y;
^
user.cpp:70:87: error: too many initializers for ‘const int [4][2][3]’
{ lst1.size() + 0, 0, -1 }, { lst2.size() + 0, 0, -1 } };
^
user.cpp:67:49: warning: narrowing conversion of ‘(lst1.std::vector<_Tp, _Alloc>::size<int, std::allocator<int> >() + 1u)’ from ‘std::vector<int>::size_type {aka unsigned int}’ to ‘const int’ inside { } [-Wnarrowing]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !