Borderou de evaluare (job #313564)

Utilizator avatar vladcainamisir Vlad Cainamisir vladcainamisir IP ascuns
Problemă Decupare Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 22 sept. 2017 19:21:58 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:36:38: error: narrowing conversion of ‘(((long long int)((int)i)) - k)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:42:36: error: narrowing conversion of ‘(i - k)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:42:36: error: narrowing conversion of ‘(i + -0x00000000000000001ll)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:50:28: error: narrowing conversion of ‘(i - k)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:50:28: error: narrowing conversion of ‘(i + -0x00000000000000001ll)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:55:36: error: narrowing conversion of ‘(i - k)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:55:36: error: narrowing conversion of ‘(i + -0x00000000000000001ll)’ from ‘long long int’ to ‘int’ inside { } [-fpermissive] user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:27:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:45:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]