Pagini recente » Cod sursa (job #1870710) | Cod sursa (job #367288) | Monitorul de evaluare | Cod sursa (job #77014) | Borderou de evaluare (job #2509059)
Borderou de evaluare (job #2509059)
Raport evaluator
Compilare:
main.cpp: In function 'void citire()':
main.cpp:8:19: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld",&n);
^
main.cpp:13:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld",&v[i]);
^
main.cpp:16:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (i>1)
^
main.cpp: In function 'int main()':
main.cpp:97:36: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
printf("%ld %ld",lg[1][n%3],rez);
^
main.cpp:97:36: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
main.cpp: In function 'void citire()':
main.cpp:8:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
main.cpp:13:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&v[i]);
^
main.cpp: In function 'int main()':
main.cpp:93:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("maxpal.in","r",stdin);
^
main.cpp:94:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("maxpal.out","w",stdout);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 131kb | Corect! | 10 |
| 2 | 2ms | 131kb | Corect! | 10 |
| 3 | 4ms | 131kb | Corect! | 10 |
| 4 | 6ms | 131kb | Corect! | 10 |
| 5 | 16ms | 131kb | Corect! | 10 |
| 6 | 23ms | 225kb | Corect! | 10 |
| 7 | 55ms | 245kb | Corect! | 10 |
| 8 | 41ms | 131kb | Corect! | 10 |
| 9 | 104ms | 131kb | Time limit exceeded | 0 |
| 10 | 101ms | 131kb | Time limit exceeded | 0 |
| Punctaj total | 80 |