Borderou de evaluare (job #2304328)

Utilizator alexradu04Radu Alexandru alexradu04 Data 17 decembrie 2018 21:51:40
Problema Numerologie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int calc(int&)': main.cpp:31:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(viz[prim[i]]) ^~ main.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' s += cost[prim[i]]; ^ main.cpp: In function 'int main()': main.cpp:58:34: error: 'minnn' was not declared in this scope minn = minnn(minn,calc(f)); ^ main.cpp:41:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("numerologie.in","r",stdin); ^ main.cpp:42:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("numerologie.out","w",stdout); ^ main.cpp:43:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ main.cpp:45:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ main.cpp:47:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&cost[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?