Borderou de evaluare (job #2482483)
Utilizator | Data | 28 octombrie 2019 12:58:06 | |
---|---|---|---|
Problema | Numere 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:2: error: invalid preprocessing directive #incude
#incude <fstream>
^~~~~~
main.cpp: In function 'int main()':
main.cpp:7:17: error: variable 'std::ifstream fin' has initializer but incomplete type
ifstream fin("numere5.in");
^
main.cpp:8:18: error: variable 'std::ofstream fout' has initializer but incomplete type
ofstream fout("numere5.out");
^
main.cpp:9:5: error: 'in' was not declared in this scope
in>>n;
^~
main.cpp:13:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x==0)
^~
main.cpp:15:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
s=s+x;
^
main.cpp:15:13: error: 's' was not declared in this scope
main.cpp:17:5: error: 'a' was not declared in this scope
a=(n*n*(n*n+1)/2-s-(k-1)*k/2);
^
main.cpp:17:22: error: 's' was not declared in this scope
a=(n*n*(n*n+1)/2-s-(k-1)*k/2);
^
main.cpp:18:5: error: 'out' was not declared in this scope
out<<a<<" "<<a+k-1;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !