Borderou de evaluare (job #1725892)

Utilizator IliesiDanielDaniel IliesiDaniel Data 6 iulie 2016 17:21:06
Problema Divizori Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void quick(int, int)’: user.cpp:21:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] unsigned long int pivot=div[(st+dr)/2]; ^ user.cpp:21:42: error: invalid conversion from ‘div_t (*)(int, int)throw ()’ to ‘long unsigned int’ [-fpermissive] user.cpp:25:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(div[i]<pivot) ^ user.cpp:25:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(div[i]<pivot) ^ user.cpp:27:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(div[j]>pivot) ^ user.cpp:27:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(div[j]>pivot) ^ user.cpp:32:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] tmp=div[i]; ^ user.cpp:32:22: error: invalid conversion from ‘div_t (*)(int, int)throw ()’ to ‘int’ [-fpermissive] user.cpp:33:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] div[i]=div[j]; ^ user.cpp:33:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] div[i]=div[j]; ^ user.cpp:33:19: error: assignment of read-only location ‘*(div + ((sizetype)i))’ div[i]=div[j]; ^ user.cpp:33:19: error: cannot convert ‘div_t(int, int)throw ()’ to ‘div_t(int, int)throw ()’ in assignment user.cpp:34:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] div[j]=tmp; ^ user.cpp:34:19: error: assignment of read-only location ‘*(div + ((sizetype)j))’ div[j]=tmp; ^ user.cpp:34:19: error: cannot convert ‘int’ to ‘div_t(int, int)throw ()’ in assignment

Ceva nu functioneaza?