Borderou de evaluare (job #2529383)

Utilizator cyg_SerbanBFlorin Gheorghe cyg_SerbanB Data 23 ianuarie 2020 12:48:20
Problema Grup Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main(int, const char**)': main.cpp:22:34: error: 'INT_MAX' was not declared in this scope int n,s,k1,k2,c=0,suma=0,ans=INT_MAX; ^~~~~~~ main.cpp:27:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=] scanf("%1d",&b1[i]); ^ main.cpp:30:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'bool*' [-Wformat=] scanf("%1d",&b2[i]); ^ main.cpp:22:19: warning: unused variable 'c' [-Wunused-variable] int n,s,k1,k2,c=0,suma=0,ans=INT_MAX; ^ main.cpp:20:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("grup.in","r",stdin); ^ main.cpp:21:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("grup.out","w",stdout); ^ main.cpp:23:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&n,&s,&k1,&k2); ^ main.cpp:25:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ main.cpp:27:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%1d",&b1[i]); ^ main.cpp:30:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%1d",&b2[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?