Borderou de evaluare (job #1998605)

Utilizator IulianaBinzarIuliana Binzar IulianaBinzar Data 8 iulie 2017 15:10:36
Problema Coco Chanel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&n,&m);//cin>>n>>m; ^ user.cpp:30:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:31:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(long long int i=0;i<n;i++)scanf("%d",&cocos[i]);//cin>>cocos[i]; ^ user.cpp:32:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(long long int i=0;i<m;i++)scanf("%d",&gaina[i]);//cin>>gaina[i]; ^ user.cpp:37:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",temp);// cout<<temp<<'\n'; ^ user.cpp:26:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.in","r",stdin); ^ user.cpp:27:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.out","w",stdout); ^ user.cpp:30:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m);//cin>>n>>m; ^ user.cpp:31:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(long long int i=0;i<n;i++)scanf("%d",&cocos[i]);//cin>>cocos[i]; ^ user.cpp:32:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(long long int i=0;i<m;i++)scanf("%d",&gaina[i]);//cin>>gaina[i]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms452kbOK10
30ms464kbOK10
40ms464kbOK10
5Depăşit1988kbTime limit exceeded.0
6Depăşit1988kbTime limit exceeded.0
7Depăşit1992kbTime limit exceeded.0
8Depăşit1988kbTime limit exceeded.0
9Depăşit1992kbTime limit exceeded.0
10Depăşit1988kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?