Borderou de evaluare (job #1490278)
Utilizator | Data | 23 septembrie 2015 08:59:26 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Prec()’:
user.cpp:55:8: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
int i,x,y,j,k,q;
^
user.cpp: In function ‘bool Cuplaj(int)’:
user.cpp:76:48: error: conversion from ‘std::vector<int>::size_type {aka unsigned int}’ to non-scalar type ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ requested
for(vector<int>::iterator it = G[nod].size();it!=G[])
^
user.cpp:76:56: error: expected primary-expression before ‘]’ token
for(vector<int>::iterator it = G[nod].size();it!=G[])
^
user.cpp:76:57: error: expected ‘;’ before ‘)’ token
for(vector<int>::iterator it = G[nod].size();it!=G[])
^
user.cpp:77:1: error: expected primary-expression before ‘}’ token
}
^
user.cpp:77:1: error: expected ‘;’ before ‘}’ token
user.cpp:77:1: warning: no return statement in function returning non-void [-Wreturn-type]
user.cpp: In function ‘int main()’:
user.cpp:87:11: warning: unused variable ‘x’ [-Wunused-variable]
int i,x,y;
^
user.cpp:87:13: warning: unused variable ‘y’ [-Wunused-variable]
int i,x,y;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !