Pagini recente » Borderou de evaluare (job #62226) | Borderou de evaluare (job #2325498) | Borderou de evaluare (job #1522821) | Borderou de evaluare (job #2935047) | Borderou de evaluare (job #1408654)
Borderou de evaluare (job #1408654)
Raport evaluator
Compilare:
user.cpp: In function ‘void citire()’:
user.cpp:16:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&n,&m);
^
user.cpp:16:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:23:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&x,&y);
^
user.cpp:23:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp: In function ‘int main()’:
user.cpp:52:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&t);
^
user.cpp:62:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",1-rez[i]);
^
user.cpp:63:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",rez[m]);
^
user.cpp: In function ‘void citire()’:
user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&n,&m);
^
user.cpp:23:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&x,&y);
^
user.cpp: In function ‘int main()’:
user.cpp:50:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("comoditate.in","r",stdin);
^
user.cpp:51:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("comoditate.out","w",stdout);
^
user.cpp:52:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3968ms | 6964kb | Raspuns gresit | 0 |
Punctaj total | 0 |