Borderou de evaluare (job #2231513)
Utilizator | Data | 14 august 2018 17:45:08 | |
---|---|---|---|
Problema | Ratway | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: error: ‘ifstream’ does not name a type
ifstream cin("ratway.in");
^~~~~~~~
user.cpp:9:1: error: ‘ofstream’ does not name a type
ofstream cout("ratway.out");
^~~~~~~~
user.cpp:21:1: error: ‘stack’ does not name a type
stack <int> S;
^~~~~
user.cpp:25:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:28:2: error: ‘cin’ was not declared in this scope
cin >> n >> m;
^~~
user.cpp:42:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(grad[i])
^
user.cpp:57:2: error: ‘S’ was not declared in this scope
S.push(1);
^
user.cpp:78:2: error: ‘cout’ was not declared in this scope
cout << m << '\n';
^~~~
user.cpp:80:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < ans.size() - 1; i++)
~~^~~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !