Borderou de evaluare (job #2107341)

Utilizator inquisitorAnders inquisitor Data 17 ianuarie 2018 01:15:09
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In member function ‘void Matrix::operator*=(Matrix&)’: user.cpp:11:66: warning: narrowing conversion of ‘(((((long long int)((Matrix*)this)->Matrix::a11) * ((long long int)other.Matrix::a11)) + (((long long int)((Matrix*)this)->Matrix::a12) * ((long long int)other.Matrix::a21))) % 666013ll)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing] *this = {(1LL * a11 * other.a11 + 1LL * a12 * other.a21) % 666013, ^ user.cpp:12:66: warning: narrowing conversion of ‘(((((long long int)((Matrix*)this)->Matrix::a11) * ((long long int)other.Matrix::a12)) + (((long long int)((Matrix*)this)->Matrix::a12) * ((long long int)other.Matrix::a22))) % 666013ll)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing] (1LL * a11 * other.a12 + 1LL * a12 * other.a22) % 666013, ^ user.cpp:13:66: warning: narrowing conversion of ‘(((((long long int)((Matrix*)this)->Matrix::a21) * ((long long int)other.Matrix::a11)) + (((long long int)((Matrix*)this)->Matrix::a22) * ((long long int)other.Matrix::a21))) % 666013ll)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing] (1LL * a21 * other.a11 + 1LL * a22 * other.a21) % 666013, ^ user.cpp:14:66: warning: narrowing conversion of ‘(((((long long int)((Matrix*)this)->Matrix::a21) * ((long long int)other.Matrix::a12)) + (((long long int)((Matrix*)this)->Matrix::a22) * ((long long int)other.Matrix::a22))) % 666013ll)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing] (1LL * a21 * other.a12 + 1LL * a22 * other.a22) % 666013}; ^ user.cpp: In function ‘int main()’: user.cpp:38:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kfib.in", "r", stdin); ^ user.cpp:39:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kfib.out", "w", stdout); ^ user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &K); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK5
20ms436kbOK5
30ms436kbOK5
40ms436kbOK5
50ms440kbOK5
60ms432kbOK5
70ms440kbOK5
80ms432kbOK5
90ms436kbOK5
100ms436kbOK5
110ms436kbOK5
120ms436kbOK5
130ms436kbOK5
140ms440kbOK5
150ms436kbOK5
160ms436kbOK5
170ms432kbOK5
180ms432kbOK5
190ms432kbOK5
200ms436kbOK5
Punctaj total100

Ceva nu functioneaza?