Submission #674500

#TimeUsernameProblemLanguageResultExecution timeMemory
674500Farhan_HYKaučuk (COCI21_kaucuk)C++14
50 / 50
1 ms328 KiB
#include <bits/stdc++.h> #define int long long #define float double #define pb push_back #define F first #define T int t; cin >> t; while(t--) #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); using namespace std; /// Benzema is the best player in the world main() { IOS int x = 0, y = 0, z = 0; T { string s, ss; cin >> s >> ss; if (s == "section") x++, y = 0, z = 0; else if (s == "subsection") y++, z = 0; else { z++; if (y == 0) y++; } cout << x; if (y) cout << '.' << y; if (z) cout << '.' << z; cout << ' ' << ss << '\n'; } } ///use scanf

Compilation message (stderr)

Main.cpp:12:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   12 | main() {
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...