Borderou de evaluare (job #2739738)

Utilizator higyederikHigyed Erik higyederik Data 9 aprilie 2021 20:19:14
Problema Zigsort Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:18:17: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] fscanf(f,"%d",&t); ^ main.cpp:23:28: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] fscanf(f,"%d",&a[i]); ^ main.cpp:31:50: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] {swapp(a[i],a[i+1]);fprintf(g,"%d ",i);ok = 0;}} ^ main.cpp:35:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] {swapp(a[i],a[i+1]);fprintf(g,"%d ",i);ok = 0;} ^ main.cpp:18:18: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&t); ^ main.cpp:21:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld%ld",&n,&m); ^ main.cpp:23:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?