Borderou de evaluare (job #1323118)
Utilizator | Data | 20 ianuarie 2015 17:57:18 | |
---|---|---|---|
Problema | Ratphu | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul II | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[23]’ [-Wformat=]
fscanf(f,"%s %d",&n,&p);
^
user.cpp:13:15: error: ‘strlen’ was not declared in this scope
k=strlen(n) ;
^
user.cpp:11:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%s %d",&n,&p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !