carnival.java:1: error: illegal character: '#'
#include <iostream>
^
carnival.java:1: error: class, interface, or enum expected
#include <iostream>
^
carnival.java:2: error: illegal character: '#'
#include <cstdlib>
^
carnival.java:3: error: illegal character: '#'
#include <cstdio>
^
carnival.java:4: error: illegal character: '#'
#include <fstream>
^
carnival.java:5: error: illegal character: '#'
#include <algorithm>
^
carnival.java:6: error: illegal character: '#'
#include <string>
^
carnival.java:7: error: illegal character: '#'
#include <utility>
^
carnival.java:8: error: illegal character: '#'
#include <vector>
^
carnival.java:9: error: illegal character: '#'
#include <queue>
^
carnival.java:10: error: illegal character: '#'
#include <set>
^
carnival.java:11: error: illegal character: '#'
#include <map>
^
carnival.java:12: error: illegal character: '#'
#include <cassert>
^
carnival.java:16: error: class, interface, or enum expected
int main() {
^
carnival.java:18: error: class, interface, or enum expected
cin.tie(NULL);
^
carnival.java:19: error: class, interface, or enum expected
int n, count = 2, prefs[155], vals[155] = {};
^
carnival.java:20: error: class, interface, or enum expected
cin >> n;
^
carnival.java:21: error: class, interface, or enum expected
prefs[0] = 1;
^
carnival.java:22: error: class, interface, or enum expected
string s = "1";
^
carnival.java:23: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:23: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:23: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:25: error: class, interface, or enum expected
cout << i+1 << " " << s << endl;
^
carnival.java:26: error: class, interface, or enum expected
cin >> prefs[i];
^
carnival.java:27: error: class, interface, or enum expected
}
^
carnival.java:29: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:29: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:29: error: class, interface, or enum expected
for (int i = 1; i < n; i++) {
^
carnival.java:32: error: class, interface, or enum expected
count++;
^
carnival.java:33: error: class, interface, or enum expected
}
^
carnival.java:36: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:36: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:36: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:38: error: class, interface, or enum expected
for (int j = 1; j < nums.size(); j++){
^
carnival.java:38: error: class, interface, or enum expected
for (int j = 1; j < nums.size(); j++){
^
carnival.java:40: error: class, interface, or enum expected
cout << 2 << " " << nums[j] << " " << (i+1) << endl;
^
carnival.java:41: error: class, interface, or enum expected
cin >> in;
^
carnival.java:42: error: class, interface, or enum expected
if (in == 1) {
^
carnival.java:44: error: class, interface, or enum expected
break;
^
carnival.java:45: error: class, interface, or enum expected
}
^
carnival.java:49: error: class, interface, or enum expected
}
^
carnival.java:52: error: class, interface, or enum expected
}
^
carnival.java:55: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:55: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:55: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
carnival.java:57: error: class, interface, or enum expected
}
^
carnival.java:59: error: class, interface, or enum expected
return 0;
^
carnival.java:60: error: class, interface, or enum expected
}
^
48 errors