Borderou de evaluare (job #1250605)
Utilizator | Data | 28 octombrie 2014 12:51:31 | |
---|---|---|---|
Problema | Boom | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int ratMoves(int)’:
user.cpp:39:22: error: ‘newconf’ was not declared in this scope
if (newConf & 1) newconf -= 1;
^
user.cpp:40:24: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
if (newConf & (1<<n+1)) newconf -= (1<<(n+1));
^
user.cpp:40:29: error: ‘newconf’ was not declared in this scope
if (newConf & (1<<n+1)) newconf -= (1<<(n+1));
^
user.cpp: In function ‘void insertG(str)’:
user.cpp:56:33: error: ‘exists’ was not declared in this scope
if (exists(nou.currentConfig)) return;
^
user.cpp: In function ‘int main()’:
user.cpp:76:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d %d",bombs[i].cost,q);
^
user.cpp:76:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
user.cpp:81:22: error: ‘struct bomb’ has no member named ‘conf’
bombs[i].conf = bombs[i].conf | (1<<ct);
^
user.cpp:81:38: error: ‘struct bomb’ has no member named ‘conf’
bombs[i].conf = bombs[i].conf | (1<<ct);
^
user.cpp:75:13: warning: unused variable ‘conf’ [-Wunused-variable]
int conf,q;
^
user.cpp:87:36: error: ‘mkstrHeap’ was not declared in this scope
q.push(mkstrHeap(0,0,initConfig));
^
user.cpp:100:73: error: could not convert ‘movedConfig’ from ‘int’ to ‘str’
insertG(movedConfig,mkstr(newCost,currentConf,i,movedConfig));
^
user.cpp:70:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("boom.in","r",stdin);
^
user.cpp:71:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("boom.out","w",stdout);
^
user.cpp:72:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:76:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",bombs[i].cost,q);
^
user.cpp:80:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ct);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !