Borderou de evaluare (job #1320522)
Utilizator | Data | 18 ianuarie 2015 01:01:09 | |
---|---|---|---|
Problema | Numere 6 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:25: error: too few arguments to function ‘FILE* freopen(const char*, const char*, FILE*)’
freopen("numere6.in");
^
In file included from /usr/include/c++/4.8/cstdio:42:0,
from user.cpp:2:
/usr/include/stdio.h:279:14: note: declared here
extern FILE *freopen (__const char *__restrict __filename,
^
user.cpp:15:26: error: too few arguments to function ‘FILE* freopen(const char*, const char*, FILE*)’
freopen("numere6.out");
^
In file included from /usr/include/c++/4.8/cstdio:42:0,
from user.cpp:2:
/usr/include/stdio.h:279:14: note: declared here
extern FILE *freopen (__const char *__restrict __filename,
^
user.cpp:41:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = 0; j < diviz.size(); ++j )
^
user.cpp:42:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int k = 0; k < diviz.size() && diviz[k] < 10 ; ++k )
^
user.cpp:50:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int j = 0; j < diviz.size(); ++j )
^
user.cpp:54:9: warning: unused variable ‘Sum’ [-Wunused-variable]
int Sum(0);
^
user.cpp:16:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i", &A,&B);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !