Borderou de evaluare (job #1982966)

Utilizator mari2001Maria Ionescu mari2001 Data 20 mai 2017 18:44:40
Problema Sqrt Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:99:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &N); cn = N; ^ user.cpp:115:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &K); ^ user.cpp:96:24: warning: variable ‘cn’ set but not used [-Wunused-but-set-variable] short c, N, aux, K, i, cn, nrc = 0; ^ user.cpp:97:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sqrt.in", "r", stdin); ^ user.cpp:98:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sqrt.out", "w", stdout); ^ user.cpp:99:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); cn = N; ^ user.cpp:115:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &K); ^ user.cpp:158:17: warning: ‘lastc’ may be used uninitialized in this function [-Wmaybe-uninitialized] makeSquare(lastc); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms276kbOK10
30ms276kbOK10
40ms276kbOK10
50ms276kbOK10
60ms276kbOK10
7Depăşit280kbTime limit exceeded.0
8Depăşit280kbTime limit exceeded.0
9Depăşit276kbTime limit exceeded.0
10Depăşit280kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?