Borderou de evaluare (job #1221379)
Utilizator | Data | 20 august 2014 13:02:21 | |
---|---|---|---|
Problema | Sume | 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:7:5: error: ‘string’ was not declared in this scope
string s = "";
^
user.cpp:7:12: error: expected ‘;’ before ‘s’
string s = "";
^
user.cpp:23:9: error: ‘s’ was not declared in this scope
s = "-1";
^
user.cpp:28:13: error: ‘s’ was not declared in this scope
s += n + "\n";
^
user.cpp:49:17: error: break statement not within loop or switch
break;
^
user.cpp:52:13: error: ‘s’ was not declared in this scope
s = "-1";
^
user.cpp:53:13: error: break statement not within loop or switch
break;
^
user.cpp:56:21: error: ‘s’ was not declared in this scope
fprintf(f2,"%s",s);
^
user.cpp:12:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf (f1, "%d", &p);
^
user.cpp:32:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1, "%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !