Pagini recente » Borderou de evaluare (job #2499108) | Borderou de evaluare (job #1457528) | Borderou de evaluare (job #2878873) | Borderou de evaluare (job #1161907) | Borderou de evaluare (job #2406303)
Borderou de evaluare (job #2406303)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d",&n);
^
main.cpp:21:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d %d",&a,&b);
^
main.cpp:21:28: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
main.cpp:22:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",gcd(a,b));
^
main.cpp:18:18: warning: unused variable 'c' [-Wunused-variable]
long n,a,b,i,c;
^
main.cpp:16:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.in", "r", stdin);
^
main.cpp:17:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("euclid2.out", "w", stdout);
^
main.cpp:19:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:21:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 20 |
3 | 2ms | 131kb | OK | 10 |
4 | 35ms | 262kb | OK | 10 | 10 |
5 | 52ms | 262kb | OK | 10 | 10 |
6 | 67ms | 393kb | OK | 10 | 10 |
7 | 85ms | 393kb | OK | 10 | 40 |
8 | 90ms | 524kb | OK | 10 |
9 | 91ms | 262kb | OK | 10 |
10 | 148ms | 655kb | OK | 10 |
Punctaj total | 100 |