Borderou de evaluare (job #2292394)

Utilizator hristacheruxiRuxandra Hristache hristacheruxi Data 29 noiembrie 2018 14:53:25
Problema Spion Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'long long int factorial(int)': main.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:43:25: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[100001]' [-Wformat=] scanf("%d%s", &o, &a); ^ main.cpp:46:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i=0 ; i<nr ; i++) ^~~ main.cpp:50:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if (o==1) ^~ main.cpp:58:38: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", factoriale[nr]*nr1*nr2)%MOD); ^ main.cpp:58:43: error: expected ';' before ')' token printf("%d", factoriale[nr]*nr1*nr2)%MOD); ^ main.cpp:58:39: warning: value computed is not used [-Wunused-value] printf("%d", factoriale[nr]*nr1*nr2)%MOD); ^ main.cpp:40:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("spion.in","r",stdin); ^ main.cpp:41:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("spion.out","w",stdout); ^ main.cpp:43:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%s", &o, &a); ^ Non zero exit status: 1

Ceva nu functioneaza?