Pagini recente » Borderou de evaluare (job #788002) | Borderou de evaluare (job #770361) | Borderou de evaluare (job #2266664) | Borderou de evaluare (job #1749624) | Borderou de evaluare (job #2476660)
Borderou de evaluare (job #2476660)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d", sol1);
^
main.cpp:11:22: warning: unused variable 'sol2' [-Wunused-variable]
int i, n, s = 0, sol2, max1, max2, len;
^~~~
main.cpp:11:28: warning: unused variable 'max1' [-Wunused-variable]
int i, n, s = 0, sol2, max1, max2, len;
^~~~
main.cpp:11:34: warning: unused variable 'max2' [-Wunused-variable]
int i, n, s = 0, sol2, max1, max2, len;
^~~~
main.cpp:11:40: warning: unused variable 'len' [-Wunused-variable]
int i, n, s = 0, sol2, max1, max2, len;
^~~
main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.in","r",stdin);
^
main.cpp:10:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.out","w",stdout);
^
main.cpp:13:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:17:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:12:15: warning: 'sol1' may be used uninitialized in this function [-Wmaybe-uninitialized]
long long sol1, x;
^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 0 |