Pagini recente » Borderou de evaluare (job #2394157) | Borderou de evaluare (job #2698192) | Borderou de evaluare (job #3243699) | Borderou de evaluare (job #3218832) | Borderou de evaluare (job #1709090)
Borderou de evaluare (job #1709090)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &T);
^
user.cpp:21:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &N);
^
user.cpp:35:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", numar);
^
user.cpp:38:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d %d\n", stanga[i], stanga[i] + lungime[i] - 1);
^
user.cpp:38:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
user.cpp:14:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("consecutive.in", "r", stdin);
^
user.cpp:15:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("consecutive.out", "w", stdout);
^
user.cpp:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 24ms | 448kb | Incorect | 0 |
Punctaj total | 0 |