Borderou de evaluare (job #1903269)

Utilizator razvan9310FMI - Razvan Damachi razvan9310 Data 5 martie 2017 05:08:00
Problema Licenta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d\n", &k); ^ user.cpp:39:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size() && bestx1 == -1; ++i) { ^ user.cpp:62:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < t.size() && bestx2 == -1; ++i) { ^ user.cpp:88:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d\n", bestx2, besty2); ^ user.cpp:88:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:92:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d\n", bestx1, besty1); ^ user.cpp:92:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:95:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d\n", bestx1, besty1); ^ user.cpp:95:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:97:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d\n", bestx2, besty2); ^ user.cpp:97:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("licenta.in", "r", stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("licenta.out", "w", stdout); ^ user.cpp:12:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &k); ^ user.cpp:15:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:19:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &x, &y); ^ user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:29:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms252kbIncorect0
24ms252kbIncorect0
30ms252kbIncorect0
44ms248kbIncorect0
58ms248kbIncorect0
684ms248kbIncorect0
7112ms248kbIncorect0
8112ms248kbIncorect0
9112ms248kbIncorect0
10112ms244kbIncorect0
Punctaj total0

Ceva nu functioneaza?