Borderou de evaluare (job #3268382)

Utilizator jumaracosminJumara Cosmin-Mihai jumaracosmin Data 14 ianuarie 2025 21:12:21
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:22: error: stray '#' in program 16 | if(S.empty())#include <bits/stdc++.h> | ^ main.cpp: In function 'int main()': main.cpp:16:32: error: 'bits' was not declared in this scope 16 | if(S.empty())#include <bits/stdc++.h> | ^~~~ main.cpp:16:37: error: 'stdc' was not declared in this scope; did you mean 'std'? 16 | if(S.empty())#include <bits/stdc++.h> | ^~~~ | std main.cpp:16:23: error: 'include' was not declared in this scope 16 | if(S.empty())#include <bits/stdc++.h> | ^~~~~~~ main.cpp:18:1: error: expected primary-expression before 'using' 18 | using namespace std; | ^~~~~ main.cpp:26:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 26 | int main() | ^~ main.cpp:26:9: note: remove parentheses to default-initialize a variable 26 | int main() | ^~ | -- main.cpp:26:9: note: or replace parentheses with braces to value-initialize a variable main.cpp:27:1: error: a function-definition is not allowed here before '{' token 27 | { | ^ main.cpp:57:9: error: 'else' without a previous 'if' 57 | else | ^~~~ main.cpp:59:54: error: 'N' was not declared in this scope 59 | while(!S.empty() && S.top() < x && cnt < N - M) | ^ main.cpp:59:58: error: 'M' was not declared in this scope 59 | while(!S.empty() && S.top() < x && cnt < N - M) | ^ main.cpp:23:5: warning: unused variable 'n' [-Wunused-variable] 23 | int n, m, cnt; | ^ main.cpp:23:8: warning: unused variable 'm' [-Wunused-variable] 23 | int n, m, cnt; | ^ Non zero exit status: 1

Ceva nu functioneaza?