Borderou de evaluare (job #1852985)
Utilizator | Data | 21 ianuarie 2017 12:33:38 | |
---|---|---|---|
Problema | Numar2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:11: error: expected initializer before ‘sir1’
long huge sir1[10001],sir2[10001];
^
user.cpp:9:1: error: ‘ifstream’ does not name a type
ifstream fin("numar2.in");
^
user.cpp:10:1: error: ‘ofstream’ does not name a type
ofstream fout("numar2.out");
^
user.cpp:13:11: error: ‘::main’ must return ‘int’
void main()
^
user.cpp: In function ‘int main()’:
user.cpp:15:3: error: ‘fi’ was not declared in this scope
fi>>n>>m;
^
user.cpp:25:5: error: ‘sir1’ was not declared in this scope
sir1[i]=i*a[k];
^
user.cpp:32:10: error: ‘sir1’ was not declared in this scope
if (sir1[i]<j*a[k])
^
user.cpp:33:9: error: ‘sir2’ was not declared in this scope
{sir2[h]=sir1[i];i++;h++;}
^
user.cpp:36:4: error: ‘sir2’ was not declared in this scope
{sir2[h]=sir1[i];j++;i++;h++;}
^
user.cpp:38:9: error: ‘sir2’ was not declared in this scope
{sir2[h]=j*a[k];j++;h++;}
^
user.cpp:42:6: error: ‘sir1’ was not declared in this scope
sir1[i] = sir2[i];
^
user.cpp:42:16: error: ‘sir2’ was not declared in this scope
sir1[i] = sir2[i];
^
user.cpp:47:3: error: ‘fout’ was not declared in this scope
fout<<sir1[m]<<endl;
^
user.cpp:47:9: error: ‘sir1’ was not declared in this scope
fout<<sir1[m]<<endl;
^
user.cpp:47:18: error: ‘endl’ was not declared in this scope
fout<<sir1[m]<<endl;
^
user.cpp:47:18: note: suggested alternative:
In file included from /usr/include/c++/4.8/istream:39:0,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:3:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !