Borderou de evaluare (job #1778757)
Utilizator | Data | 14 octombrie 2016 08:26:24 | |
---|---|---|---|
Problema | Petrica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:30:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[202]’ [-Wformat=]
scanf("%d", &p);
^
user.cpp:31:11: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
s += p;
^
user.cpp:3:15: error: request for member ‘push_back’ in ‘G’, which is of non-class type ‘std::vector<int> [202]’
#define pb(x) push_back(x)
^
user.cpp:37:2: note: in expansion of macro ‘pb’
.pb(y);
^
user.cpp: In function ‘void DFS(int)’:
user.cpp:44:1: error: invalid array assignment
= p
^
user.cpp:48:2: error: request for member ‘size’ in ‘G’, which is of non-class type ‘std::vector<int> [202]’
.size(); ++ i)
^
user.cpp:50:17: error: invalid conversion from ‘std::vector<int>*’ to ‘int’ [-fpermissive]
int y = G
^
user.cpp:56:1: error: incompatible types in assignment of ‘int’ to ‘int [202]’
+= dp[y];
^
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:66:2: error: request for member ‘size’ in ‘G’, which is of non-class type ‘std::vector<int> [202]’
.size(); ++ i)
^
user.cpp:68:20: error: invalid conversion from ‘std::vector<int>*’ to ‘int’ [-fpermissive]
int node = G
^
user.cpp:70:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(!vis.test(node) && dp[node] < dp
^
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:77:13: error: request for member ‘test’ in ‘sub’, which is of non-class type ‘std::bitset<202u> [202]’
if (sub.test(j))
^
user.cpp:79:17: error: request for member ‘test’ in ‘sub’, which is of non-class type ‘std::bitset<202u> [202]’
if (sub.test(k) && !sub[j].test(k))
^
user.cpp:82:16: error: invalid operands of types ‘int’ and ‘int [202]’ to binary ‘operator-’
s2 -= dp;
^
user.cpp:82:16: error: in evaluation of ‘operator-=(int, int [202])’
user.cpp:85:36: error: request for member ‘test’ in ‘sub’, which is of non-class type ‘std::bitset<202u> [202]’
if (sub[k].test(j) && !sub.test(j))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !