Borderou de evaluare (job #1250713)
Utilizator | Data | 28 octombrie 2014 14:01:06 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include fstream
^
user.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include algorithm
^
user.cpp:4:1: error: ‘ifstream’ does not name a type
ifstream cin(inv.in);
^
user.cpp:5:1: error: ‘ofstream’ does not name a type
ofstream cout(inv.out);
^
user.cpp: In function ‘bool cmp(pc, pc)’:
user.cpp:17:11: error: ‘struct pc’ has no member named ‘jb’
return (a.jb.j) (a.j==b.j && a.njb.nj);
^
user.cpp:17:33: error: ‘struct pc’ has no member named ‘njb’
return (a.jb.j) (a.j==b.j && a.njb.nj);
^
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:25:34: error: expected ‘,’ or ‘;’ before numeric constant
int pivot=(left+right)2;
^
user.cpp:26:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(x=pivot) update(left,pivot,2nod);
^
user.cpp:26:42: error: unable to find numeric literal operator ‘operator"" nod’
if(x=pivot) update(left,pivot,2nod);
^
user.cpp:27:38: error: unable to find numeric literal operator ‘operator"" nod’
else update(pivot+1,right,2nod+1);
^
user.cpp:28:25: error: ‘nod2’ was not declared in this scope
arb[nod]=arb[nod2]+arb[2nod +1];
^
user.cpp:28:35: error: unable to find numeric literal operator ‘operator"" nod’
arb[nod]=arb[nod2]+arb[2nod +1];
^
user.cpp: In function ‘void query(int, int, int)’:
user.cpp:36:34: error: expected ‘,’ or ‘;’ before numeric constant
int pivot=(left+right)2;
^
user.cpp:37:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(x=pivot) {
^
user.cpp:38:25: error: ‘nod2’ was not declared in this scope
rs+=arb[nod2], rs%=9917;
^
user.cpp:39:39: error: unable to find numeric literal operator ‘operator"" nod’
query(pivot+1 , right,2nod+1);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !