Borderou de evaluare (job #2561930)

Utilizator rares22iunieDoroftei Rares rares22iunie Data 29 februarie 2020 11:09:07
Problema Eq4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[100005]' [-Wformat=] scanf("%s",&a); ^ main.cpp:28:30: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator-' nr=nr*10+a[i]-"0",i++; ~~~~~~~~~~^~~~ main.cpp:10:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("eq4.in","r",stdin); ^ main.cpp:11:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("eq4.out","w",stdout); ^ main.cpp:12:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&c); ^ main.cpp:13:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&a); ^ main.cpp:14:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&st,&dr,&rest); ^ Non zero exit status: 1

Ceva nu functioneaza?