Pagini recente » Borderou de evaluare (job #430183) | Borderou de evaluare (job #2513025) | Borderou de evaluare (job #1310184) | Borderou de evaluare (job #2670817) | Borderou de evaluare (job #1354313)
Borderou de evaluare (job #1354313)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f1,"%ld",&n);
^
user.cpp:22:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f1,"%ld",&x);ok=0;
^
user.cpp:23:47: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
for(j=1;j<=x;j++){fscanf(f1,"%ld",&aux);if(ok!=1&&aux%2==1)ok=1;}
^
user.cpp:26:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(f2,"%ld\n",x);
^
user.cpp: In function ‘long long int exp(long long int, long long int)’:
user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:19:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%ld",&n);
^
user.cpp:22:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%ld",&x);ok=0;
^
user.cpp:23:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(j=1;j<=x;j++){fscanf(f1,"%ld",&aux);if(ok!=1&&aux%2==1)ok=1;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 244ms | 264kb | OK | 100 |
Punctaj total | 100 |