15814 | 2025-03-03 20:21:07 | renn | Micimackó (40 pont) | cpp17 | Forditási hiba |
#include <bits/stdc++.h>
using namespace std;
#define GOTTAGOFAST cin.tie(0) cout.tie(0) ios::sync_with_stdio(0);
int main(){
GOTTAGOFAST
int nyuszi, malac;
cin >> nyuszi >> malac;
int csupor, extra;
cin >> csupor >> extra;
int veg = max(0, max(0, csupor-nyuszi) + extra - (malac-nyuszi));
cout << veg << "\n";
}
open /var/local/lib/isolate/404/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:4:32: error: expected ';' before 'cout'
4 | #define GOTTAGOFAST cin.tie(0) cout.tie(0) ios::sync_with_stdio(0);
| ^~~~
main.cpp:7:5: note: in expansion of macro 'GOTTAGOFAST'
7 | GOTTAGOFAST
| ^~~~~~~~~~~