Borderou de evaluare (job #1638002)

Utilizator radu.leonardoThe Doctor radu.leonardo Data 7 martie 2016 20:30:27
Problema Strabunica Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘unsigned int findMin(int, int)’: user.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p2[k]<=y-x+1)k++; ^ user.cpp:17:14: warning: variable ‘ma’ set but not used [-Wunused-but-set-variable] int k=0, ma; ^ user.cpp: In function ‘int main()’: user.cpp:47:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf(" %d\n", &n); ^ user.cpp:50:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] for(i=1; i<=n; i++) scanf("%d", &m[0][i]); ^ user.cpp:45:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] { freopen("strabunica.in","r",stdin); ^ user.cpp:46:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("strabunica.out","w",stdout); ^ user.cpp:47:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d\n", &n); ^ user.cpp:50:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1; i<=n; i++) scanf("%d", &m[0][i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms340kbOK10
20ms352kbOK10
30ms512kbOK10
416ms3660kbOK10
532ms7636kbOK10
644ms13616kbOK10
772msDepăşitMemory limit exceeded.0
880msDepăşitMemory limit exceeded.0
984msDepăşitMemory limit exceeded.0
1084msDepăşitMemory limit exceeded.0
Punctaj total60

Ceva nu functioneaza?