Borderou de evaluare (job #1359932)
Utilizator | Data | 25 februarie 2015 09:51:18 | |
---|---|---|---|
Problema | Por Costel si Invazia Extraterestra | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Propag(int, int, int)’:
user.cpp:28:9: warning: unused variable ‘mij’ [-Wunused-variable]
int mij=((st+dr)>>1);
^
user.cpp: In function ‘void Query(int, int, int, int)’:
user.cpp:4:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
#define INF 2000000000
^
user.cpp:81:44: note: in expansion of macro ‘INF’
if(aint[nod].Stiva.empty()) return INF;
^
user.cpp:82:31: error: no match for ‘operator[]’ (operand types are ‘std::stack<el>’ and ‘int’)
return aint[nod].Stiva[0];
^
user.cpp:82:33: error: return-statement with a value, in function returning 'void' [-fpermissive]
return aint[nod].Stiva[0];
^
user.cpp: In function ‘int main()’:
user.cpp:100:22: error: ‘tip’ was not declared in this scope
scanf("%c", &tip);
^
user.cpp:113:13: error: ‘w’ was not declared in this scope
w.val=v[aux].val; w.poz=v[aux].poz;
^
user.cpp:113:44: error: ‘struct qry’ has no member named ‘poz’
w.val=v[aux].val; w.poz=v[aux].poz;
^
user.cpp:119:16: error: void value not ignored as it ought to be
aux=Query(1,1,n,aux);
^
user.cpp:95:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("invazia.in","r",stdin);
^
user.cpp:96:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("invazia.out","w",stdout);
^
user.cpp:97:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n,&m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !